Hi, Everyone
I'm able to run docker container already, but recently, to avoid the security issue(http: docs.docker.com/engine/security/security/), I created a mapping user "dockremap" and add "--userns-remap=default" to the docker daemon, but now I'm experiencing permission issue, the error message is:
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "process_linux.go:368: container init caused \"rootfs_linux.go:57: mounting \\\"proc\\\" to rootfs \\\"/var/lib/docker/100000.100000/vfs/dir/5cb7aebc85e6289551756d185b9b9885ac847e29fa437dc49418b8f94506c74e\\\" at \\\"/proc\\\" caused \\\"operation not permitted\\\"\"".
I googled the internet and find someone said this might be caused by something has been mounted on top of "/proc" (http: github.com/moby/moby/issues/24752). Then I checked the "/proc" folder and did find lxcfs underrness:
# mount | grep proc
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
proc on /proc/sys/net type proc (rw,nosuid,nodev,noexec,relatime)
proc on /proc/sys type proc (ro,nosuid,nodev,noexec,relatime)
proc on /proc/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime)
lxcfs on /proc/cpuinfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/diskstats type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/meminfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/stat type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/swaps type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/uptime type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
It shouldn't be unmounted, right? then how I can fix this issue?
I'm able to run docker container already, but recently, to avoid the security issue(http: docs.docker.com/engine/security/security/), I created a mapping user "dockremap" and add "--userns-remap=default" to the docker daemon, but now I'm experiencing permission issue, the error message is:
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "process_linux.go:368: container init caused \"rootfs_linux.go:57: mounting \\\"proc\\\" to rootfs \\\"/var/lib/docker/100000.100000/vfs/dir/5cb7aebc85e6289551756d185b9b9885ac847e29fa437dc49418b8f94506c74e\\\" at \\\"/proc\\\" caused \\\"operation not permitted\\\"\"".
I googled the internet and find someone said this might be caused by something has been mounted on top of "/proc" (http: github.com/moby/moby/issues/24752). Then I checked the "/proc" folder and did find lxcfs underrness:
# mount | grep proc
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
proc on /proc/sys/net type proc (rw,nosuid,nodev,noexec,relatime)
proc on /proc/sys type proc (ro,nosuid,nodev,noexec,relatime)
proc on /proc/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime)
lxcfs on /proc/cpuinfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/diskstats type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/meminfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/stat type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/swaps type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/uptime type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
It shouldn't be unmounted, right? then how I can fix this issue?
Last edited: