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

docker login command line password misbehaviour #712

Closed
kishaningithub opened this issue Sep 28, 2016 · 4 comments
Closed

docker login command line password misbehaviour #712

kishaningithub opened this issue Sep 28, 2016 · 4 comments

Comments

@kishaningithub
Copy link

kishaningithub commented Sep 28, 2016

Im a new user to docker hub (my user id: kishanb)

docker login -u kishanb -p <<My password here>>
Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password
docker login
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.
Username: kishanb
Password: 
Login Succeeded

Im sure im entering the correct password.. Tried this several times
as well.

Information

  • Diagnostic ID: AA29E5F0-DC99-41D9-B944-0648349F074B
@dsheets
Copy link
Contributor

dsheets commented Sep 28, 2016

If your password contains characters interpreted by your shell (in particular $ but there are others), executing a command with your password in it may fail due to shell interpretation. I recommend putting your password between single quotes (') to disable shell interpretation in Bourne (sh) and similar shells (bash, ash). Does that work?

@dsheets dsheets changed the title docker login misbehaviour for new users docker login command line password misbehaviour Sep 28, 2016
@kishaningithub
Copy link
Author

Thanks a lot! Special characters caused the mess for me..

@n4ss
Copy link

n4ss commented Oct 2, 2017

This issue is fixed in the latest release.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants