Sharing Docker Machine definitions - tooltwist/documentation GitHub Wiki

After you define a swarm using Docker machine, it's useful to be able to share the definitions of the swarm with other users, for example so they can also use Docker Machine on their own laptop.

To do this, you copy individual directories from ~/.docker/machine/machines across to the equivalent location on the new machine. Unfortunately you'll need to edit the config.json files within these directories, as they contain absolute file paths.

See here for more details.