I did all the commands to use docker without sudo:
1)sudo groupadd docker
2)sudo usermod -aG docker $USER
3)newgrp docker
4)logout and login to system
I could do docker commands for local without sudo but it didnt allow me to login into docker hub and I can not pull or push from that.
shokouh@rasam-HP:~$ docker login
Log in with your Docker ID or email address to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com/ to create one.
You can log in with your password or a Personal Access Token (PAT). Using a limited-scope PAT grants better security and is required for organizations using SSO. Learn more at https://docs.docker.com/go/access-tokens/
Username: shdareshiri
Password:
Error saving credentials: error storing credentials - err: exec: "docker-credential-pass": executable file not found in $PATH, out: ``