Last active
July 28, 2017 12:24
-
-
Save yamamoto-febc/377ae14a189b63e4382e5e3b79391e74 to your computer and use it in GitHub Desktop.
Rancherに追加したホストをdocker-machineにインポート ref: http://qiita.com/yamamoto-febc/items/eb6089a49d550d0a487e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mkdir -p /var/lib/cattle/machine/machines |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/var/lib/cattle/machine/machines配下に展開 | |
| $ tar xvf sakura-test-01.tar -C /var/lib/cattle/machine/machines/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ダウンロードしたマシン設定ファイル一式を利用してdocker-machine起動 | |
| $ docker-machine -s /var/lib/cattle/machine/machines/展開したディレクトリ ls | |
| #または環境変数で-sオプションを指定 | |
| $export MACHINE_STORAGE_PATH=/var/lib/cattle/machine/machines/展開したディレクトリ | |
| $ docker-machine ls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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