亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

不通過(guò) docker hub 怎樣把 docker image 共享給別人
阿神
阿神 2017-04-21 11:16:02
0
5
1044

docker image 是存放在哪個(gè)目錄的,在不聯(lián)互聯(lián)網(wǎng)的情況下,怎樣把 docker image 分享給局域網(wǎng)的其他用戶(hù)?

阿神
阿神

閉關(guān)修行中......

reply all(5)
迷茫

Suppose you have an image called ubuntu, then you can use the save and load commands to transfer the image:

Execute on local machine
sudo docker save -o ubuntu.tar ubuntu

The ubuntu.tar file is obtained, copy it to the remote machine, and execute

sudo docker load < ubuntu.tar

That’s how it happened...

劉奇

docker export/import?

迷茫

keywords: docker image location

http://stackoverflow.com/questions/19234831/where-are-docker-images-stored-on-the-host-machine
http://alexander.holbreich.org/2014/07/moving-docker-images-different-partition/

Ty80

In addition to the export/import mechanism of docker mentioned by others, you can also build your own private docker registry.

DigitalOcean has an excellent tutorial:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-priva...

伊謝爾倫

How to save has been explained clearly. However, it is not clear how to transmit it. Here I will talk more about how to transmit it. Assume that the name of the package is xiaoming/ubuntu. Let’s save it in tmp first.

sudo docker save -o /tmp/ubuntu.tar xiaoming/ubuntu

Then we can open a micro download server.
 python -m SimpleHTTPServer 8001

Finally go to other servers

wget http://ip:8001/ubuntu.tar

That’s it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template