<p>As you all know if we use docker to build image inside container we have to mount  <code>&quot;-v</code> <code>/var/run/docker.sock:/var/run/docker.sock&quot;</code>,  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 .</p>

Rajendar Talatam
<p>Though it's not recommended, by mounting the containerd's socket, you can do the same thing.</p>
<pre><code>-v /var/run/containerd/containerd.sock:/var/run/containerd/containerd.sock
</code></pre>
<p>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).</p>
