Difference between revisions of "Docker login"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
 
* <code>docker login</code>
 
* <code>docker login</code>
 
* <code>[[docker login --help]]</code>
 
* <code>[[docker login --help]]</code>
 +
docker login -u
 +
 +
 
* <code>[[docker]] login --username $DOCKERHUB_USERNAME</code>
 
* <code>[[docker]] login --username $DOCKERHUB_USERNAME</code>
 
* <code>docker login --username YOURUSER YOUREPO.[[azurecr.io]]</code>
 
* <code>docker login --username YOURUSER YOUREPO.[[azurecr.io]]</code>

Revision as of 11:04, 25 October 2024

docker login -u


Examples


docker login --username $DOCKERHUB_USERNAME
Login Succeeded

Errors

 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

Related

See also

Advertising: