Reputation: 282
As you all know if we use docker to build image inside container we have to mount "-v
/var/run/docker.sock:/var/run/docker.sock"
, how does nerdctl handle that with container-d ?
I am planning to use nerdctl Instead of kaniko , my workflows changes are heavy if I use kaniko .
Upvotes: 0
Views: 1422
Reputation: 1091
Though it's not recommended, by mounting the containerd's socket, you can do the same thing.
-v /var/run/containerd/containerd.sock:/var/run/containerd/containerd.sock
And you also need to install nerdctl on the container in some way (copying binary files in the Dockerfile, or mounting a directory which nerdctl.tar.gz exists and extracting it just the same as the host).
Upvotes: 1