Skip to content

GID changed to use root vs what is on the host for "devices" #36446

@EnorMOZ

Description

@EnorMOZ

GID changed to use root vs what is on the host for "devices"

Host:
ls -lrt /dev/dri
crw-rw---- 1 root video 226, 128 Feb 19 13:27 renderD128
crw-rw---- 1 root video 226, 0 Feb 19 13:27 card0

Container:
docker exec -i -t container ls -lrt /dev/dri/
crw-rw---- 1 root root 226, 128 Feb 28 10:15 renderD128
crw-rw---- 1 root root 226, 0 Feb 28 10:15 card0

Steps to reproduce the issue:

  1. Add /dev/dri as a device

Describe the results you received:
crw-rw---- 1 root root 226, 128 Feb 28 10:15 renderD128
crw-rw---- 1 root root 226, 0 Feb 28 10:15 card0

Describe the results you expected:
crw-rw---- 1 root video 226, 128 Feb 28 10:15 renderD128
crw-rw---- 1 root video 226, 0 Feb 28 10:15 card0

Additional information you deem important (e.g. issue happens only occasionally):
Happens on 17.12.1 but not 17.12 or below
Happens on 18.02 and above
Output of docker version:

Client:
 Version:	18.01.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	03596f5
 Built:	Wed Jan 10 20:11:05 2018
 OS/Arch:	linux/amd64
 Experimental:	false
 Orchestrator:	swarm

Server:
 Engine:
  Version:	18.01.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	03596f5
  Built:	Wed Jan 10 20:09:37 2018
  OS/Arch:	linux/amd64
  Experimental:	false

Output of docker info:

Containers: 11
 Running: 11
 Paused: 0
 Stopped: 0
Images: 13
Server Version: 18.01.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.13.0-32-generic
Operating System: Ubuntu 16.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 31.21GiB
Name: myserver.com
ID: CP2K:4ZJZ:HOVE:ZUCJ:H4YJ:MKM2:D7Z2:I7XA:APR7:ARNX:GVS7:OMUO
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

Additional environment details (AWS, VirtualBox, physical, etc.):
Physical

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions