Oh no Docker (windows) Stuck at login , why cannot login to my docker through cmd git
Case :
Warning: failed to get default registry endpoint from daemon (error during conne ct: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.27/info: open //./pipe/docker_e ngine: The system cannot find the file specified. In the default daemon configur ation on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.). Using system default: https://index.docker.io/v1/ Login with your Docker ID 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.
> error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.27/auth: ope n //./pipe/docker_engine: The system cannot find the file specified. In the defa ult daemon configuration on Windows, the docker client must be run elevated to c onnect. This error may also indicate that the docker daemon is not running.
> docker login Error: Cannot perform an interactive login from a non TTY device
Solution :
> docker-machine start default > docker-machine env default > @FOR /f "tokens=*" %i IN ('docker-machine.exe env --shell cmd') DO @%i > docker login Username: * Password: * Login Succeeded
More info :
Trying to connect to Docker API for shell commands throws error
Happy Saturday
KG
EmoticonEmoticon