We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7af311b + f3c48da commit d6f0c29Copy full SHA for d6f0c29
1 file changed
diff/apply/apply_linux.go
@@ -26,12 +26,18 @@ import (
26
"github.com/containerd/containerd/archive"
27
"github.com/containerd/containerd/errdefs"
28
"github.com/containerd/containerd/mount"
29
+ "github.com/opencontainers/runc/libcontainer/system"
30
"github.com/pkg/errors"
31
)
32
33
func apply(ctx context.Context, mounts []mount.Mount, r io.Reader) error {
34
switch {
35
case len(mounts) == 1 && mounts[0].Type == "overlay":
36
+ // OverlayConvertWhiteout (mknod c 0 0) doesn't work in userns.
37
+ // https://github.com/containerd/containerd/issues/3762
38
+ if system.RunningInUserNS() {
39
+ break
40
+ }
41
path, parents, err := getOverlayPath(mounts[0].Options)
42
if err != nil {
43
if errdefs.IsInvalidArgument(err) {
0 commit comments