docker login
(Redirected from Docker login -u)
Jump to navigation
Jump to search
docker login
docker login --help
docker login -u
docker login --username $DOCKERHUB_USERNAME
docker login --username YOURUSER YOUREPO.azurecr.io
docker login --username $DOCKERHUB_USERNAME --password-stdin
- Configuration file:
~/.docker/config.json
Contents
Examples[edit]
docker login localhost:8080
aws ecr get-login-password --region YOUR_REGIOM | docker login --username YOUR_USERNAME --password-stdin YOUR_ACCOUNT_ID.dkr.ecr.YOUR_REGION.amazonaws.com
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]
docker logout, docker push
- GitLab:
DOCKER_AUTH_CONFIG
conan user, podman login, npm login
- Docker ID
- Login:
conan user, podman login, docker login, aws ecr get-login, npm login, crane auth
crane ls
kubectl create secret docker-registry
uses: docker/login-action
See also[edit]
Advertising: