Skip to content

Instantly share code, notes, and snippets.

@yamamoto-febc
Last active July 28, 2017 12:24
Show Gist options
  • Save yamamoto-febc/377ae14a189b63e4382e5e3b79391e74 to your computer and use it in GitHub Desktop.
Save yamamoto-febc/377ae14a189b63e4382e5e3b79391e74 to your computer and use it in GitHub Desktop.
Rancherに追加したホストをdocker-machineにインポート ref: http://qiita.com/yamamoto-febc/items/eb6089a49d550d0a487e
$ mkdir -p /var/lib/cattle/machine/machines
#/var/lib/cattle/machine/machines配下に展開
$ tar xvf sakura-test-01.tar -C /var/lib/cattle/machine/machines/
#ダウンロードしたマシン設定ファイル一式を利用してdocker-machine起動
$ docker-machine -s /var/lib/cattle/machine/machines/展開したディレクトリ ls
#または環境変数で-sオプションを指定
$export MACHINE_STORAGE_PATH=/var/lib/cattle/machine/machines/展開したディレクトリ
$ docker-machine ls
$ eval $(docker-machine -s /var/lib/cattle/machine/machines/展開したディレクトリ env sakura-test-01)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment