简体   繁体   中英

Docker-machine host env on multiple computers?

I am using docker-machine to create a box on a digitalocean droplet. I have deployed a simple hello world docker container to that host and it works fine.

When I do a docker-machine ls on my main computer I see the digitalocean driver running like a champ.

I now want to be able to move to my laptop and do a docker-machine ls and see the digital ocean driver running there too, but am unclear as to how to "share" the machine so its accessible from two different computers.

Thoughts?

You can use this npm package https://github.com/bhurlow/machine-share#readme . It provides the missing import/export functionality in docker machine

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