Skip to content

Docker version 17.12.1-ce mounts /dev/snd devices as group root - breaks alsa applications #36457

@fadams

Description

@fadams

In Docker version 17.12.0-ce when using --device=/dev/snd in docker run the devices are mounted owned by root but in group audio - this can be seen by doing ls -al /dev/snd in a container that uses --device=/dev/snd.

I've just upgraded to Docker version 17.12.1-ce via my distro updater and my application has stopped working, upon investigation I noticed that when doing ls -al /dev/snd the devices have both owner and group as root, which is the most likely culprit. This was proved by execing into the container as uid 0 and manually doing chown root:audio * in /dev/snd

Don't know if other devices are affected by this though I'd be surprised if it was just /dev/snd

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/runtimeRuntimekind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.version/17.12

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions