Skip to content
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

Windows: [TP4] Fix docker login #17738

Merged
merged 1 commit into from Nov 6, 2015
Merged

Windows: [TP4] Fix docker login #17738

merged 1 commit into from Nov 6, 2015

Conversation

lowenna
Copy link
Member

@lowenna lowenna commented Nov 5, 2015

Signed-off-by: John Howard jhoward@microsoft.com

@thaJeztah Fixes #14336 and #14210. This allows interactive docker login to work again on Windows. Verified under cmd and PowerShell. Previously, it was impossible to type anything, it would hang on the username prompt. The only workaround was to control-C and type all the parameters on a single line.

login

Signed-off-by: John Howard <jhoward@microsoft.com>
@thaJeztah
Copy link
Member

oh, cool! change sgtm

@cpuguy83
Copy link
Member

cpuguy83 commented Nov 6, 2015

That's weird, as far as I can tell it already is literally os.Stdin.
It gets populated from term.StdStreams()

@lowenna
Copy link
Member Author

lowenna commented Nov 6, 2015

Which on Windows using cmd or PS will end up as an ansireader

@lowenna
Copy link
Member Author

lowenna commented Nov 6, 2015

@cpuguy83 See https://github.com/docker/docker/blob/master/pkg/term/term_windows.go#L39 where it will be windows.ConsoleStreams() which in turn changes it to an AnsiReader at https://github.com/docker/docker/blob/master/pkg/term/windows/console.go#L17

@cpuguy83
Copy link
Member

cpuguy83 commented Nov 6, 2015

@jhowardmsft Aah I see, that term.go is no being built on Windows.

Ok, LGTM.

@calavera
Copy link
Contributor

calavera commented Nov 6, 2015

LGTM

calavera added a commit that referenced this pull request Nov 6, 2015
Windows: [TP4] Fix docker login
@calavera calavera merged commit f198334 into moby:master Nov 6, 2015
@lowenna lowenna deleted the jjh/login branch November 6, 2015 23:12
@thaJeztah thaJeztah modified the milestones: 1.9.1, Windows TP4 Nov 6, 2015
@thaJeztah
Copy link
Member

@jhowardmsft Erm, added it to the 1.9.1 milestone, because it's a bug in general and it would be nice for people to get access to this soon. Think you're okay with that 😄

@lowenna
Copy link
Member Author

lowenna commented Nov 6, 2015

@thaJeztah Can it be both?

@thaJeztah
Copy link
Member

@jhowardmsft unfortunately not, I tried that, but it's one milestone only, so I selected 1.9.1 to make sure it gets cherry-picked

@rainabba
Copy link

rainabba commented Nov 9, 2015

Looking forward to this fix

@rainabba
Copy link

rainabba commented Nov 9, 2015

I saw it mentioned elsewhere, but the workaround wasn't clear to me until I discovered it myself. docker-machine ssh default to get to the vm hosting docker on vbox. THAT is where the images actually are (including my own after it was build). In that VM, docker login work and so I was also able to docker push from there.

trackpadpro added a commit to trackpadpro/tppsss that referenced this pull request Apr 11, 2022
the error that remains appears to be a choice of shell/go functions

moby/moby#15272
moby/moby#17738
golang/go#11914
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants