quick-docs/modules/ROOT/pages/_partials/proc_run-docker-using-sudo.adoc
2018-07-27 18:53:34 +02:00

11 lines
460 B
Text

[[procedure-run-docker-using-sudo]]
= Run Docker using sudo
. Set up [command]`sudo` as shown in link:con_using-sudo-assign-admin-privileges.html[Using sudo to assign administrator privileges].
. Create an alias for running the docker command by adding the following line to your `~/.bashrc` file:
+
----
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.