quick-docs/en-US/modules/procedure-run-docker-using-sudo.adoc

10 lines
360 B
Text
Raw Normal View History

2017-12-14 04:37:34 +00:00
[[procedure-run-docker-using-sudo]]
= Run Docker using [command]`sudo`
. Set up [command]`sudo` as shown in *Using sudo to give/limit admin privileges*
. Create an alias for running the docker command:
----
alias docker="sudo /usr/bin/docker"
----
When the user executes the docker command as non-root, sudo will be used to manage access and provide logging.