moby: docker --userns-remap @ubuntu 16.04 fails
–>
Output of docker version:
root@ubuntu-xenial:~# docker version
Client:
Version: 1.11.1
API version: 1.23
Go version: go1.5.4
Git commit: 5604cbe
Built: Tue Apr 26 23:43:49 2016
OS/Arch: linux/amd64
Server:
Version: 1.11.1
API version: 1.23
Go version: go1.5.4
Git commit: 5604cbe
Built: Tue Apr 26 23:43:49 2016
OS/Arch: linux/amd64
Output of docker info:
root@ubuntu-xenial:~# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 1
Server Version: 1.11.1
Storage Driver: overlay
Backing Filesystem: extfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host bridge null
Kernel Version: 4.4.0-21-generic
Operating System: Ubuntu 16.04 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 992.4 MiB
Name: ubuntu-xenial
ID: FDFO:55GV:K7E3:V4BO:REON:BZ2E:FRK7:XJEJ:XCC6:4CG3:PYSY:3LKW
Docker Root Dir: /var/lib/docker/231072.231072
Debug mode (client): false
Debug mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Additional environment details (AWS, VirtualBox, physical, etc.):
Vagrant config.vm.box = “ubuntu/trusty64”
Steps to reproduce the issue:
- Start: docker --userns-remap=default [-s overlay]
- docker pull alpine
- docker run --rm alpine date
Describe the results you received:
root@ubuntu-xenial:~# docker run --rm alpine date
docker: Error response from daemon: rpc error: code = 2 desc = "oci runtime error: could not synchronise with container process: device or resource busy".
Log:
ERRO[0201] containerd: start container error=oci runtime error: could not synchronise with container process: device or resource busy id=9bb642f9cf1e240f7291ce2235ce29324ad2d937a66ed83a945be0205ecf5524
ERRO[0202] Handler for POST /v1.23/containers/9bb642f9cf1e240f7291ce2235ce29324ad2d937a66ed83a945be0205ecf5524/start returned error: rpc error: code = 2 desc = "oci runtime error: could not synchronise with container process: device or resource busy"
Describe the results you expected:
The output from date
Additional information you deem important (e.g. issue happens only occasionally):
It works on docker-machine/fedora22? ubuntu 16.04 has cgroup namespace enabled. Looks like there is a problem.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 51 (36 by maintainers)
linux-image-4.4.0-28-genericis now available on thexenial-updates/mainrepo.Running a container with
userns-remapwithout a volume works now, but it doesn’t when using a host directory volume.Here the daemon log error
Command executed
Host directory info
Also not working if I
chown 100000:100000the directory.Docker daemon options
Docker info
subuid
subgid
Getting the same error under Arch Linux. A container with userns-remap without a volume works, but it doesn’t when using a host directory volume.
Here the daemon log error
Command executed
Output of docker version
Output of docker info
subuid
subgid
docker.service status
Host directory info