mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-30 23:38:18 +00:00
11 lines
508 B
Text
11 lines
508 B
Text
[[procedure-run-docker-using-sudo]]
|
|
= Run Docker using sudo
|
|
|
|
. 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].
|
|
. 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.
|