aws ecr get-login command is failing with permission denied error


aws ecr get-login command is failing with permission denied error, following is the error I am getting

ubuntu@ip-xxx-xx-xx-xxx:~$ $(aws ecr get-login --no-include-email --region us-east-1)
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/auth: dial unix /var/run/docker.sock: connect: permission denied

No answers yet!

5 years ago by