Add mix_docker configuration to prepend "sudo" to docker commands
Closed this issue ยท 3 comments
I am using docker
on Linux with sudo (I don't want to add my user account to the docker
group because it "grants privileges equivalent to the root user"), and I am using asdf
on my user account to manage elixir versions. In order to use mix_docker
right now I would need to set up asdf
on my root account and then I would need to use sudo mix docker.build
.
I would like to propose adding a use_docker_with_sudo
configuration option which would prepend "sudo" to docker commands. This way I'd be able to run mix docker.build
and only docker
commands would be run as root.
What do you think?
(I understand this tool is "deprecated" so I guess I'm only asking to know if a contribution PR would be merged and if there would be a release anytime soon in the future)
then there's the other problem with running sudo docker
from erlang without password prompt I can elaborate on that in docs
@michallepicki I advise migrating to docker multi-stage according to the new readme - https://github.com/Recruitee/mix_docker/pull/58/files
thanks @teamon! ๐