Skip to content

Instantly share code, notes, and snippets.

@realcr
realcr / machine_manager.py
Last active June 10, 2020 09:09
Manage docker machines between different hosts (Allows attaching to existing docker machine)
import os
import shutil
from sstash.sstash import SecureStash
from getpass import getpass
stash_path = "/my/path/to/stash/file"
def store_machine(machine_name):
"""
Export a docker-machine from to the machines dir.