In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Overview
After we have made the image, we sometimes need to copy the image to another server to use.
There are two ways to achieve the above goals. One is to upload the image to the warehouse (local or public warehouse), but the other server is willing to communicate with the current server LAN without a public network, so if you use the warehouse, you can only build your own private warehouse, which will be described in another article.
If we just want to copy to a small number of other servers, it is obviously not necessary to build a private repository, and it is also a good choice to save the image as a file and upload it to another server and load the image from the file.
You can use the Docker save and Docker load commands to store and load images.
2. Save the image as a file
If you want to save the image as a local file, you can use the Docker save command.
Command format:
1docker save-o the file name to be saved, the image to be saved
First, check the current image list:
1docker p_w_picpaths
For example, here, we save the image of centos6 as the file p_w_picpath.tar:
When you are done, you can see the file through the ls command.
3. Load the image from the file
You can use the Docker load command to load an image from a file.
Command format:
1docker load-input file
Or
1docker load < file name
The image and related metadata information will be imported.
First use the SSH tool to upload the file to another server.
Then load the image with the command:
1docker load < p_w_picpath.tar
After import, you can use the docker p_w_picpaths command to view:
The image of centos6 has been imported successfully.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.