When I try to execute this command: sudo docker-compose up in macOs Catalina
I have this error: error getting credentials - err: exit status 1, out: ``
please somebody help me!
Share and learn in the Docker community.
When I try to execute this command: sudo docker-compose up in macOs Catalina
I have this error: error getting credentials - err: exit status 1, out: ``
please somebody help me!
hello @loutrec2001 ,
could you please share the sample compose file to reproduce the issue?
also if possible with complete error logs.
Thanks
Why are you using sudo on macOS? I have seen using sudo recently once and even then it was a mistake causing an error, but in that case sudo seemed required due to another error which we solved and the other error disappeared too.
When you use sudo the docker command is running on behalf of a different user, so you are using a different config file including different login status.
I would also recommend using docker compose
instead of docker-compose
to make sure you are using Compose v2.