mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixed error in group add example
There is no ${USERNAME} in bash, only ${USER}
This commit is contained in:
parent
af50b2f17c
commit
fc559d9992
1 changed files with 2 additions and 2 deletions
|
@ -78,11 +78,11 @@ client commands.
|
|||
# Add the docker group if it doesn't already exist.
|
||||
sudo groupadd docker
|
||||
|
||||
# Add the connected user "${USERNAME}" to the docker group.
|
||||
# Add the connected user "${USER}" to the docker group.
|
||||
# Change the user name to match your preferred user.
|
||||
# You may have to logout and log back in again for
|
||||
# this to take effect.
|
||||
sudo gpasswd -a ${USERNAME} docker
|
||||
sudo gpasswd -a ${USER} docker
|
||||
|
||||
# Restart the docker daemon.
|
||||
sudo service docker restart
|
||||
|
|
Loading…
Add table
Reference in a new issue