quick-docs/modules/ROOT/pages/_partials/2delete-proc_run-docker-using-sudo.adoc

12 lines
508 B
Text
Raw Normal View History

2018-01-03 16:15:39 +00:00
[[procedure-run-docker-using-sudo]]
= Run Docker using sudo
2019-03-22 15:20:33 +00:00
. Set up [command]`sudo` as shown in xref:performing-administration-tasks-using-sudo.adoc.adoc#con_using-sudo-assign-admin-privileges[Using sudo to assign administrator privileges].
2018-01-03 16:15:39 +00:00
. 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.