https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
a

adamant-kite-43734

06/06/2022, 3:42 AM
This message was deleted.
p

polite-engineer-55788

06/06/2022, 3:42 AM
say I need to run/start a new container from another container
@fast-garage-66093 @best-city-49378 @best-accountant-68201 thoughts or pointers ?
I build the nerdctl image and ran it with
--privileged
mode and was able to run a container from within the
nerdctl
container
but I am curious to know if I can share the namespaces and containers from RD with customer container from which I will spin/run another container
so that the
nerdctl run
from the container need not have to download the images every time
b

best-city-49378

06/06/2022, 10:48 AM
I don't know about rancher desktop, but for lima it was preferred to just run things on the VM (like k8s) rather than use nested containers (like kind)
p

polite-engineer-55788

06/06/2022, 12:40 PM
yeah k8s is the preferred way but as part of CI thing that I am working with I need to have a container trigger running of another container for build purpose
actually by building
nerdctl
as container image and used it to do the container in container. It did work well but I dont how to share the storage so that it can reuse existing container images
j

jolly-forest-99711

06/07/2022, 3:51 PM
If I understand what you're doing, you can re-use images by bind mounting the
nerdctl
image directory. I believe it's listed here: https://github.com/containerd/nerdctl/blob/master/docs/dir.md
10 Views