Browse code

dockerd-rootless.sh: support containerd v1.4 shim socket path convention

The new shim socket path convention hardcodes `/run/containerd`:
https://github.com/containerd/containerd/pull/4343

`dockerd-rootless.sh` is updated to hide the rootful `/run/containerd`
from the mount namespace of the rootless dockerd.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>

Akihiro Suda authored on 2020/06/26 16:45:49
Showing 1 changed files
... ...
@@ -94,6 +94,6 @@ else
94 94
 	[ $_DOCKERD_ROOTLESS_CHILD = 1 ]
95 95
 	# remove the symlinks for the existing files in the parent namespace if any,
96 96
 	# so that we can create our own files in our mount namespace.
97
-	rm -f /run/docker /run/xtables.lock
97
+	rm -f /run/docker /run/containerd /run/xtables.lock
98 98
 	exec dockerd $@
99 99
 fi