This message was deleted.
# rancher-desktop
a
This message was deleted.
p
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
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
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
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