How to run Docker commands without sudo
Introduction
Section titled “ Introduction”Setup your user account to run Docker commands without sudo. This worked for me within Ubuntu.
How To
Section titled “ How To”-
Setup your user account to be part of the
Section titled “Setup your user account to be part of the docker group”dockergroupRun the following commands:
# Open your terminal applicationsudo groupadd dockersudo usermod -aG docker $USERnewgrp docker -
Restart your OS or VM
Section titled “Restart your OS or VM”Now you can run Docker commands without sudo.
No comments found for this note.
Join the discussion for this note on Github. Comments appear on this page instantly.