Script to import and export docker-machine configurations to sync between hosts/collaborators
$ 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 to dev.zip
$ ls
docker-machine-import.sh
docker-machine-export.sh
dev.zip
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
$ ./docker-machine-import.sh dev.zip
Exported machine to dev.zip
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
dev - digitalocean Running tcp://example.com:2376 v1.10.1
This script requires you to have the same $MACHINE_STORAGE_PATH/certs
available on all host systems
Thanks, find also the issue with %3 on Linux
on the new machine, I imported the configuration and run into this error, thanks to @g0blin79 for the solution.
docker-machine regenerate-certs dinghy