Run Docker without using sudo in Linux
Docker Engine is an open-source containerization technology for building and containerizing your applications. To know more see the official site.
After the successful installation of docker in your system you have to go through a few basic steps to run docker without SUDO.
Step 1: Add the docker group if it doesn’t already exist
sudo groupadd docker
Step 2: Add the connected user “$USER” to the docker group.
sudo gpasswd -a $USER docker
Step 3: Either do a
newgrp docker
or log out/in to activate the changes to groups.
Step 4: Check if docker without sudo is running or not
docker run hello-world