Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1602/docker-machine-config-dump
Dump/restore docker machine list
https://github.com/1602/docker-machine-config-dump
Last synced: about 1 month ago
JSON representation
Dump/restore docker machine list
- Host: GitHub
- URL: https://github.com/1602/docker-machine-config-dump
- Owner: 1602
- Created: 2016-05-30T18:32:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-31T12:34:11.000Z (over 8 years ago)
- Last Synced: 2024-10-11T00:35:25.734Z (about 1 month ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What
This is for sharing remote docker-machines across dev team
## Why
Because we want to access same remote server created by `docker-machine create`
from different machines and we want to do it right now, while proper
implementation is [in progress](https://github.com/docker/machine/issues/23)Sharing private keys is bad idea, don't do it in production. This solution is
for testing purposes only.## Installation
```
npm install -g docker-machine-config-dump
```## Usage
### export
```
docker-machine-config-dump > ~/Downloads/docker-machines.json
```### import
```
envsubst '$HOME' < ~/Downloads/docker-machines.json | docker-machine-config-dump
```few notes:
- on mac in order to have `envsubst` command you need to install gettext utils:
```
brew install gettext
brew link --force gettext
```- if you already have machines, it might be a good idea to backup your certs
before importing someone else's machines:```
docker-machine-config-dump > ~/backup-docker-machine.json
```then if you want to restore them later just import from ~/backup-docker-machine.json:
```
docker-machine-config-dump < ~/backup-docker-machine.json
```## LICENSE
MIT