If you want to run Docker as a non-root user, you must add your account to the Docker group. So to do this you simply need to execute the following commands:
sudo usermod -aG docker $USER
sudo chmod 666 /var/run/docker.sock
Restart your system to apply the changes:
sudo systemctl restart docker
+8595670151
7 days a week, 24 hours a day