Skip to content

bind mounting /etc/resolv.conf fails  #1523

@yuvipanda

Description

@yuvipanda

I'm trying to run a rootless container on a Linux machine.

How to reproduce

$ skopeo --insecure-policy copy docker://opensuse/amd64:42.2 oci:opensuse:latest
$umoci unpack --rootless --image singleuser:latest bundle
$ runc  --root /tmp/^Cnc run  test
container_linux.go:265: starting container process caused "process_linux.go:348: container init caused \"rootfs_linux.go:57: mounting \\\"/etc/resolv.conf\\\" to rootfs \\\"/home/yuvipanda/code/ferry-commute/bundle/rootfs\\\" at \\\"/home/yuvipanda/code/ferry-commute/bundle/rootfs/etc/resolv.conf\\\" caused \\\"operation not permitted\\\"\""

I suspect that the problem is related to the fact that my $HOME is mounted with encfs and has nodev & nosuid (maybe related to #1247?)

/home/.ecryptfs/yuvipanda/.Private on /home/yuvipanda type ecryptfs (rw,nosuid,nodev,relatime,ecryptfs_fnek_sig=bf2ce9e5622d0c40,ecryptfs_sig=ae8560bd6ae1015e,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions