Guest User

Untitled

a guest
Dec 13th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. ***The Docker daemon always runs as the root user.
  2. If you don’t want to preface the docker command with sudo,
  3. create a Unix group called docker and add users to it.
  4. When the Docker daemon starts, it creates a Unix socket
  5. accessible by members of the docker group. ***
  6.  
  7. ### Create the docker group ###
  8.  
  9. $ sudo groupadd docker
  10.  
  11. ### Add your user to the docker group ###
  12.  
  13. $ sudo usermod -aG docker $USER
  14.  
  15. ### Log out and log back in so that your group membership is re-evaluated ###
  16. ### Verify that you can run docker commands without sudo ###
  17.  
  18. $ docker run hello-world
Add Comment
Please, Sign In to add comment