Docker login: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 19: Line 19:
Logging into an AWS ECR:
Logging into an AWS ECR:


  docker login -u AWS -p [...]  https://something.ecr.us-west-2.amazonaws.com
  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]].
For more details see [[Amazon_ECR#Configure_Access|Amazon ECR - Configure Access]].

Revision as of 22:06, 2 October 2018

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?