Docker login: Difference between revisions
Jump to navigation
Jump to search
(→TODO) |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
* [[Docker Client Operations#Security|Client Operations]] | * [[Docker Client Operations#Security|Client Operations]] | ||
* [[Docker_Concepts#Registry_Authentication|Docker Concepts - Registry Authentication]] | |||
=Overview= | =Overview= | ||
Used when [[Docker_push#Push_to_Individual_Docker_Hub_Account|pushing to Docker Hub]]. | |||
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: ... | |||
Password: ... | |||
=Login into an Arbitrary Registry= | |||
docker login <''registry-url''> | |||
Logging into an AWS ECR: | |||
docker login -u AWS -p [...] https://something.ecr.us-west-2.amazonaws.com | |||
For more details see [[Amazon_ECR#Configure_Access|Amazon ECR - Configure Access]]. | |||
=TODO= | |||
<font color=darkgray> | |||
* How can I tell if I am logged in? | |||
* Where are the credential kept? | |||
* For how long am I authenticated? | |||
* What happens if it expires - any danger in using stale images instead of a clear error message? Research needed. | |||
</font> |
Latest revision as of 19:47, 3 May 2019
Internal
Overview
Used when pushing to Docker Hub.
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: ... Password: ...
Login into an Arbitrary Registry
docker login <registry-url>
Logging into an AWS ECR:
docker login -u AWS -p [...] https://something.ecr.us-west-2.amazonaws.com
For more details see Amazon ECR - Configure Access.
TODO
- How can I tell if I am logged in?
- Where are the credential kept?
- For how long am I authenticated?
- What happens if it expires - any danger in using stale images instead of a clear error message? Research needed.