简体   繁体   中英

Pull image from another Docker Machine

Is it possible to pull an image from another docker machine without having to install the docker repository?

I got 2 docker machines for development and i would like to deploy an image on the second docker machine that i have build with the first one.

Is this possible?

If you have created your docker servers using docker-machine then you could do an export/import using remote access to the docker agents on each server.

docker $(docker-machine config server1) export exampleimage:1.0 | docker $(docker-machine config server2) import - exampleimage:1.0

But....it would be a lot simpler to just rebuild the image on the second server, using the same Dockerfile.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM