Problem scenario
For security reasons, you do not want to have to use “sudo” to elevate your privileges when you run docker commands. What should you do?
Solution
1. Run these commands as the user that will be able to run docker commands:
sudo groupadd docker
sudo gpasswd -a $USER docker
newgrp docker
2. Install Docker. See this posting if you need directions.
…
Continue reading “How Do You Run Docker commands without sudo?”