docker-py
docker-py copied to clipboard
Documentation for exec_run()
The default user is an empty string, but the docs say it is root. I had to manually specify the user as root in order to run commands as root on a container object. The privileged flag does not seem to have any use.
https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.Container.exec_run The relevant documentation appears to be the same in 4.1.0 (installed), stable, and latest.