1. Go to https://hub.docker.com to register an account
2. After logging in, create a new repository on the hub, which is similar to ..create ---> create repository on github and then name it
3. Find a Linux, SSH tool to connect to it, and install docker, the following tutorial defaults to docker installed on your device
4. Download the image you need to backup
docker pull xxxx:xxxx
Check local existing mirrors
docker image ls
5. Log in to the docker hub account you just created on Linux
docker login
Then enter the account password
The above picture shows that the login is successful
Change the image to be backed up to the repository name created in step 2, otherwise the upload will not succeed
#使用docker tag 镜像ID 用户名称/镜像源名 :新的标签名(tag) 来更改
docker tag 5997b3824cbe lvlvu/qinglong:2.10.13
At this point, you can see that there is an additional image that you need to upload.
Then upload it to your own repository and you're done!
#上传格式:docker push<hub-user>/<repo-name>:<tag>
docker push lvlvu/qinglong:2.10.13
Then go back to the repository you just created at https://hub.docker.com, and you can see the image you backed up