-
Create the docker group.
sudo groupadd docker -
Add your user to the docker group.
sudo usermod -aG docker $USER -
Activate the changes to groups:
sudo newgrp docker -
Verify that you can run docker commands without sudo.
docker run hello-world -
Configure Docker to start on boot
sudo systemctl enable docker