Hi!
I’m currently running Docker via the stable canonical-maintained snap package.
According to the documentation on that page, and available through snap info docker
, there is a specific command when using the snap, which replaces docker run --privileged
:
Use the ‘docker-privilege’ command for ‘docker run --privileged’.
However, I can’t find this command on my system. Trying a docker-privilege
command leads to:
docker-privilege: command not found
It’s not listed by which
either. I checked snap info docker
and it’s not one of the available commands:
[...]
commands:
- docker.compose
- docker
- docker.help
- docker.machine
[...]
In true desperation, even find / -iname docker-privilege
found nothing on the system matching that name.
Through some searching, I found a public Google Doc that seems to be from the maintainers of the Docker Snap, which indicates that, in the past, the interface needed to be connected for docker:privilege
.
It goes on to note that this isn’t needed since Ubuntu Core Series 16+, but I tried it anyway:
sudo snap connect docker:privileged :docker-support
None of this seemed to help. How do I run privileged containers when using the Docker snap?
Misc info: Ubuntu 19.10, latest/stable
channel for Docker snap, AppArmor enforcing.