Difference between revisions of "Docker login"

From wikieduonline
Jump to navigation Jump to search
 
(28 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
* <code>docker login</code>
 
* <code>docker login</code>
 
* <code>[[docker login --help]]</code>
 
* <code>[[docker login --help]]</code>
 +
* <code>docker login -u</code>
 +
 +
 +
* <code>[[docker]] login --username $DOCKERHUB_USERNAME</code>
 +
* <code>docker login --username YOURUSER YOUREPO.[[azurecr.io]]</code>
 
* <code>[[docker]] login --username $DOCKERHUB_USERNAME [[--password-stdin]]</code>
 
* <code>[[docker]] login --username $DOCKERHUB_USERNAME [[--password-stdin]]</code>
 +
 +
* Configuration file: <code>[[~/.docker/config.json]]</code>
  
 
== Examples ==
 
== Examples ==
 
* <code>docker login localhost:8080</code>
 
* <code>docker login localhost:8080</code>
* <code>[[aws ecr get-login-password]] --region YOUR_REGIOM | docker login --username YOUR_USERNAME --password-stdin YOUR_ACCOUNT_ID.[[dkr.ecr]].YOUR_REGION.amazonaws.com</code>
+
* <code>[[aws ecr get-login-password]] --region YOUR_REGIOM | [[docker login]] --username YOUR_USERNAME --password-stdin YOUR_ACCOUNT_ID.[[dkr.ecr]].YOUR_REGION.amazonaws.com</code>
 +
 
 +
 
 +
docker login --username $DOCKERHUB_USERNAME
 +
Login Succeeded
 +
 
 +
== Errors ==
 +
{{ecr:BatchGetImage}}
 +
 
 +
Error response from daemon: Get "https://registry-1.docker.io/v2/": [[unauthorized: your account must log in with a Personal Access Token (PAT)]] - learn more at docs.docker.com/go/access-tokens
 +
 
 +
== Activities ==
 +
* [[Pull an Image from a Private Registry in Kubernetes]]
 +
* [[Docker Hub: create and manage access tokens]]
  
 
== Related  ==
 
== Related  ==
* <code>[[docker logout]]</code>
+
* <code>[[docker logout]], [[docker push]]</code>
* <code>[[docker push]]</code>
+
* [[GitLab]]: <code>[[DOCKER_AUTH_CONFIG]]</code>
* <code>[[podman login]]</code>
+
* <code>[[conan user]], [[podman login]], [[npm login]]</code>
* <code>[[aws ecr get-login]]</code>
+
* [[Docker ID]]
* <code>[[conan user]]</code>
+
* {{login}}
* <code>[[DOCKER_AUTH_CONFIG]]</code>
+
* <code>[[crane ls]]</code>
* [[Credential Helpers]]
+
* <code>[[kubectl create secret docker-registry]]</code>
* <code>[[docker config]]</code>
+
* <code>[[uses: docker/login-action]]</code>
* <code>[[$HOME/.docker/config.json]]</code>
 
  
 
== See also ==
 
== See also ==
 
* {{docker login}}
 
* {{docker login}}
* {{docker}}
+
* {{docker config}}
 +
* {{Credential Helpers}}
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Latest revision as of 11:05, 25 October 2024


Examples[edit]


docker login --username $DOCKERHUB_USERNAME
Login Succeeded

Errors[edit]

 Error response from daemon: pull access denied for 0123456789.dkr.ecr.eu-west-1.amazonaws.com/your-repo, repository does not exist or may require 'docker login': denied: User: arn:aws:iam::12314234235:user/your-user is not authorized to perform: ecr:BatchGetImage on resource: arn:aws:ecr:eu-west-1:5435345354:repository/your-repo because no resource-based policy allows the ecr:BatchGetImage action
Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: your account must log in with a Personal Access Token (PAT) - learn more at docs.docker.com/go/access-tokens

Activities[edit]

Related[edit]

See also[edit]

Advertising: