How to export Docker-machine configuration to be used on other machines -
what's best way move docker-machine machines (remote not local host) 1 computer (osx windows). have change config.json files machines works on computer, because path certs , machine hardcoded in config file.
while approach works, it's bit tedious if need share them on team. there way export or import machine? or there other ways archive trying do.
until feature gets implemented natively (see issue 23), can use import/export script i've written.
https://gist.github.com/schickling/2c48da462a7def0a577e
export (on host a)
$ docker-machine ls name active driver state url swarm docker errors dev - digitalocean running tcp://example.com:2376 v1.10.1 $ ./docker-machine-export.sh dev exported machine dev.zip $ ls docker-machine-import.sh docker-machine-export.sh dev.zip
import (on host b)
$ docker-machine ls name active driver state url swarm docker errors $ ./docker-machine-import.sh dev.zip exported machine dev.zip $ docker-machine ls name active driver state url swarm docker errors dev - digitalocean running tcp://example.com:2376 v1.10.1
Comments
Post a Comment