docker compose version
Docker Compose version v2.36.2
Hello people:
I should intall postgres, if I’m not mistaken first of all I have to do login on docker.
docker login
USING WEB-BASED LOGIN
i Info → To sign in with credentials on the command line, use ‘docker login -u ’
Your one-time device confirmation code is: BMTN-ZDZB
Press ENTER to open your browser or submit your device code here: https://login.docker.com/activate
Waiting for authentication in the browser…
failed to store tokens: error storing credentials - err: exec: “docker-credential-desktop”: executable file not found in $PATH, out: error storing credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out:
Browser tell you!
Congratulations, you’re all set!
A docker-compose.yml file would be useful for installing postgres.
I intend to set the port number, container creation and volumes. And as soon as you do this you also download image postgres.
Even entering password admin in the docker-compose.yml file would be useful.
Have you installed Docker Desktop and Docker CE on the same Debian Linux? Since there is only one client config by default, if you install Docker Desktop, it will change your client config and that will affect your Docker CE as well. Since the credential helper doesn’t exist, I also assume you deleted Docker Desktop already, but the client config was already changed. You can try to delete the $HOME/.docker folder (create a backup first if you have any custom settings there) and try the docker command again.
Yes, i tried to install Docker Desktop in the past, but the operation was not successful.
Yesterday reading in the community i tried this command sudo -E PATH=“$PATH” but it didn’t work.
I would also need Docker Desktop too, but surely my laptop is too old.
I try to do as you suggested.
I also changed the topic title to include the error message. “Docker login problem” doesn’t really say anything about the issues and it would be harder to notice for other users.