Difference between revisions of "Docker login"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
 
* <code>[[docker]] login --username $DOCKERHUB_USERNAME [[--password-stdin]]</code>
 
* <code>[[docker]] login --username $DOCKERHUB_USERNAME [[--password-stdin]]</code>
  
* Configuration file: <code>[[$HOME/.docker/config.json]]</code>
+
* Configuration file: <code>[[~/.docker/config.json]]</code>
  
 
== Examples ==
 
== Examples ==

Revision as of 05:16, 18 July 2024

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

Related

See also

Advertising: