Fixed the 'sudo' topic.
This commit is contained in:
parent
d24c67ff75
commit
f197483475
13 changed files with 99 additions and 83 deletions
11
en-US/modules/proc_run-docker-using-sudo.adoc
Normal file
11
en-US/modules/proc_run-docker-using-sudo.adoc
Normal file
|
@ -0,0 +1,11 @@
|
|||
[[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.
|
Loading…
Add table
Add a link
Reference in a new issue