Skip to content

Restore Command

Doug Hatcher edited this page May 20, 2021 · 2 revisions

This allows you to restore the docker-machine certs bundle from an S3 bucket, paired with the backup command, this will let you transfer docker-machines to and from systems using the AWS API. Will require programmatic credentials with permissions to download from S3.

Usage: mach restore [flags]

Flags: -h, --help help for restore -k, --keep-tarball keeps the tarball in working directory after upload

Global Flags: --config string config file (default is loaded from working dir, or $HOME/.mach.yaml)

NOTE that the restore command will also restore the .docker/machine/certs directory, which is desirable behavior in a lot of situations but since those certs are system-specifc you may end up breaking other certs. In future builds, certs will be manageable seperately either through a flag or as a different option

Clone this wiki locally