Docker study notes-docker push error denied: requested access to the resource is denied

Problem Description

Use the docker push command to upload the image to Docker Hub locally, even if the docker login has been successfully logged in, the push error still occurs:

denied: requested access to the resource is denied


the reason

When publishing the image, the image needs to be renamed. The naming format should be: dockerhub username/image name


solve

docker tag test/docker_node:v1 dockerwychen/docker_node:20201209001
docker login -u admin -p 123456
docker push dockerwychen/docker_node:20201209001

Docker push again, the upload is successful!

 

Guess you like

Origin blog.csdn.net/qq_14997473/article/details/110917351