Calling docker as a different user #2960
Unanswered
williamhargrove
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Calling docker as a different user
The way my system is configured requires me to use docker through a different use to the one I would run molecule as. To use docker I must do 'sudo -u dkr docker ps'. The dkr user has no shell access.
I run molecule as my user, so when doing a 'molecule create' the command exists with a permission denied. Is it possible to configure the platform section of molecule.yml to instruct the docker commands to be run through 'sudo -u dkr' or in a similar way to achieve the same results.
I understand the config options are similar to docker compose but I can't find any config that suggests how I might achieve a workaround for the above.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions