Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ***The Docker daemon always runs as the root user.
- If you don’t want to preface the docker command with sudo,
- create a Unix group called docker and add users to it.
- When the Docker daemon starts, it creates a Unix socket
- accessible by members of the docker group. ***
- ### Create the docker group ###
- $ sudo groupadd docker
- ### Add your user to the docker group ###
- $ sudo usermod -aG docker $USER
- ### Log out and log back in so that your group membership is re-evaluated ###
- ### Verify that you can run docker commands without sudo ###
- $ docker run hello-world
Add Comment
Please, Sign In to add comment