Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to download a docker image locally and restore it on another machine

Shulou Source: shulou.com Published: 2022-06-01 14:19:45 10月25日 Update

This article mainly shows you "how to download docker images locally and restore them on other machines". The content is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to download docker images locally and restore them on other machines".

Usually, we download docker images by configuring domestic sources to speed up the download, but sometimes there are other requirements. For example, if a machine cannot be connected to the Internet, we need to download it from other machines, package it, and copy it to this machine.

I am quite miserable. The radio and television network pulled at home is too rubbish, and the local image has not been successful, but I have an Ali cloud server, which can be pulled down from the server, so I was used immediately.

View Mirror

Docker images

Save to local

Docker save 999c20aee5da > / home/artipub.tar 999c20aee5da is mirrored ID

Copy to the target machine

I downloaded it from Aliyun to my local using FileZilla.

Load Mirror to docker

Docker load < / Volumes/SoftWare/artipub.tar

View the target machine image

Docker images

After loading successfully, these two places will be none, and we need to modify the tag.

Modify the current machine image label

Docker tag 999c20aee5da artipub:latest can then be started using the docker run command

The above is all the contents of the article "how to download docker images locally and restore them on other machines". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Mirror machine content article success copy server tag target Ali learning help service normal two command place garbage easy to understand more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Docker Shulou Information Microsoft Shulou Tech Info