New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login command says "The handle is invalid" after inputting username #15272
Comments
I got the same issue, and the long one is working, thanks. |
Same. My configuration Windows 10 x64, Docker Tools, Docker-engine 1.8.1 |
Wonder if this is the same issue as #12469 (comment) /cc @jhowardmsft @swernli |
@thaJeztah , not quite the same issue. but I suspect both have to do with the way that docker is using GO to do terminal stuff. Regular Windows 7 cmd.exe window can control a But the "no tty" problem with But the docker login is a different sort of failure. With docker 1.8.x on windows, Windows 10 made some further terminal changes that may complicate analysis of these bugs. |
I see the same behaviour from the Git Bash shell on Windows 10. |
Having the same issue here. As workaround I did
And then copied the persisted credentials in
|
Thanks @hschaeidt. My windows worked with your idea. |
Please can you try the latest docker.exe from master.dockerproject.org. I have made recent changes. If you still see the invalid handle error, I would like to investigate further as this is not expected now. |
Got exactly the same with the latest one @jhowardmsft |
Can you provide docker version, your client OS details and what environment you are running the login from - cmd/powershell/mingw+version/Cygwin etc @npiv |
I downloaded the most recent docker toolbox and was trying to run this from Docker Quickstart bash window (C:\Users\username\AppData\Local\Programs\Git\bin\bash.exe) I also tried it from the bash the normal way I launch that at had the same problem. |
@rick-maclean Same request for info as per above please... Particularly docker version |
I ran this from the docker quickstart terminal next I tried to run docker login pressing return does not work. HOWEVER.......when I created the machine manually from git-bash ALSO: I was able to start the default machine that is created by the quickstart terminal |
So that's why. The bug wasn't fixed until 1.10 on the Windows client. 1.7 definitely had the bug. by running ssh, you're running a Linux binary which doesn't have the bug. |
@jhowardmsft we're considering a 1.9.2 release, think we should cherry-pick that fix into that release? Do you remember which PR fixed this? |
Ah, that fix should already be in 1.9.1, so installing the 1.9.1 version should work |
I'm still getting the same issue with 1.9.1 on Windows 8.1 Pro. $ docker version
Client:
Version: 1.9.1
API version: 1.21
Go version: go1.4.3
Git commit: a34a1d5
Built: Fri Nov 20 17:56:04 UTC 2015
OS/Arch: windows/amd64
Server:
Version: 1.9.1
API version: 1.21
Go version: go1.4.3
Git commit: a34a1d5
Built: Fri Nov 20 17:56:04 UTC 2015
OS/Arch: linux/amd64
$ docker login --username=calebeverett --email=caleb@calebeverett.io
The handle is invalid.
$ docker login --username calebeverett --password [password] --email calebeverett/docker-whale
Error response from daemon: invalid registry endpoint https://calebeverett/docker-whale/v0/: unable to ping registry endpoint https://calebeverett/docker-whale/v0/
v2 ping attempt failed with error: Get https://calebeverett/docker-whale/v2/: dial tcp 198.105.244.228:443: connection refused
v1 ping attempt failed with error: Get https://calebeverett/docker-whale/v1/_ping: dial tcp 198.105.244.228:443: connection refused. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry calebeverett` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/calebeverett/ca.crt
|
I'm struggling to repro this. I'm using the same version of docker client and server. Have tried the invalid handle repro from
|
I should add, I can also successfully logon to a DTR using the same client:
|
Thank you, I was able to get the response you did by going back to the default terminal. I had changed the shortcut based on this issue to get a more user friendly terminal. Could you provide any other info on how to resolve the registry issue? I was following along with the tutorial and got the aforementioned error at step 8. I tried this fix but got this error: Error response from daemon: invalid registry endpoint https://index/docker.io/v1
/: Get https://index/docker.io/v1/_ping: dial tcp 198.105.244.228:443: connectio
n refused. If this private registry supports only HTTP or HTTPS with an unknown
CA certificate, please add `--insecure-registry index` to the daemon's arguments
. In the case of HTTPS, if you have access to the registry's CA certificate, no
need for the flag; simply place the CA certificate at /etc/docker/certs.d/index/
ca.crt |
I'm no registry expert by any means. If it's a DTR without the certs set (such as the one I logged onto in my last comment above), I simply added |
I was just trying to push an image to Docker Hub. |
You won't be able to push Windows images to docker hub. Only to a DTR as of TP4. |
Ok, now I feel better. So is this tutorial for the future or a thing of the past? |
Hmm, it should still work from a Windows client pointing to a Linux daemon. I haven't got time to check if does actually work though right now. A workaround if it does fail is to do the push from a Linux client (eg by ssh onto the Linux box) |
Ok, thanks for the responses. I'll see if I can figure it out on the other issue. |
There is temporary solution working fine for me: { Docker 403 forbidden error |
It looks like this is specific to the password field..?? Username is accepted in prompt or long form. email is accepted in prompt or long form. Password seems to be where it chokes. But it worked for me using winpty.
|
thaks tcrockett1138 !!! |
Not working for me with latest version of git (1.11.1). I tried in git MinGW64 Still get "The handle is invalid". Also I have the tty/non-tty error when trying to docker exec -ti <container_name> /bin/bash Any thoughts?
|
Also having problem with latest docker-compose (1.7.0) and private registries. Even when I am logged in |
Resolving this "by design". This is because mintty's stdin is not a console. This is well documented at https://mintty.github.io/ under You see the same thing in linux if you do I will submit a PR which gives a better error on Windows, but there's very little that can be done short of getting a fix in mintty, although it sounds like this is by design for them. The better solution is to use the native Windows console on Windows - cmd, PowerShell, or LXSS. You also don't see this using sh from Git for Windows 2.7/2.8 |
Also more info at https://code.google.com/archive/p/mintty/issues/56 |
|
the error that remains appears to be a choice of shell/go functions moby/moby#15272 moby/moby#17738 golang/go#11914
To reproduce:
But this command DOES work:
So the problem might be something to do with reading from stdin?
Vague, uninformed theory: could this ReadPassword issue be related?
docker version:
docker info:
uname -a:
The text was updated successfully, but these errors were encountered: