docker image could not be uploaded to the solution
- 2020-05-24 06:32:36
- OfStack
preface
First of all, I would like to solve a problem. In front of me, there was an error in the mirror image of push. The landlord couldn't figure out why it would make a mistake in the mirror image of push.
If you need to move the local mirror push to daocloud's mirror repository (that is, the private repository), follow these steps:
First of all need to mirror a tag, when tag operation, you need to use the mirror iamgeID. In addition, please note tag operation, need to indicate your ID daocloud users, this will put the mirror push to your warehouse, otherwise, the default is to dalcloud the root directory of the warehouse, the directory and ordinary users without permission, so when push hi permissions error. In fact, most of the questions are permissions problem.
push only for paying users!!
The solution
Let's upload it honestly
Docker hub
So let's go ahead and do that. It's easy. First you need to have 1
docker hub
And log in.
It is then executed at the terminal
sudo docker login
You are prompted to enter your registration
docker hub
Time information.
If you see the successful message, you have succeeded, and at this point you are ready to perform the tag operation, while at tag you need to be aware of the format
docker hub
Download the image from the repository, but if you want to share your image, you must register first.
sudo docker push shanyongxu/syx_image
Then you can see what success looks like.
Open your
docker hub
You can see the image you uploaded.
If you still have 1 host, you can use it at this time
docker pull shanyongxu/syx_image
Then you can successfully get your mirror image off pull from dockerhub.
conclusion
The above is the whole content of this article, I hope the content of this article can help you to learn or use docker, if you have any questions, you can leave a message to communicate.