野声

Hey, 野声!

谁有天大力气可以拎着自己飞呀
twitter
github

access denied when docker push

When using docker push on Ubuntu, it keeps reporting access denied:

denied: requested access to the resource is denied

Even after using docker login, it still doesn't work, and the tags on the image are normal, which is very strange.

Solution#

Actually, this is a very strange problem. You will find that this article has a tag called Linux.

Because docker login will save user information in the current user's path, you can see from the prompt "You are logging in with a plaintext password" after login.

WARNING! Your password will be stored unencrypted in /home/xxxx/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

I am using a regular account, and docker login was not used with sudo, but later I used sudo docker push...

So, in the root account, docker does not have login information, so it cannot be pushed.

Therefore, everyone needs to check whether the current operating system's login user has docker login information.

During the search process, it was found that almost everyone had the same problem of not being able to push the image, which is not adding scope when pushing the image.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.