Resources attached to the Road To DevOps tutorial
https://blog.noobtoroot.xyz/road-to-devops/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
789 B
33 lines
789 B
2 years ago
|
# Docker-Machine
|
||
|
|
||
|
Utiliser Docker-Machine pour gérer
|
||
|
un démon Docker sur un autre hôte.
|
||
|
|
||
|
|
||
|
* Installer Docker-Machine.
|
||
|
|
||
|
* Joindre à votre `docker-machine` la seconde VM à l'aide du driver `generic` et de la clef SSH.
|
||
|
|
||
|
* Se connecter à un autre hôte avec les commandes `docker-machine`
|
||
|
|
||
|
|
||
|
<!-- .slide: data-background="#2E2E2E" -->
|
||
|
```
|
||
|
curl -L https://github.com/docker/machine/releases/download/
|
||
|
v0.10.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine &&
|
||
|
chmod +x /tmp/docker-machine &&
|
||
|
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine
|
||
|
```
|
||
|
|
||
|
```
|
||
|
docker-machine create -d generic \
|
||
|
--generic-ssh-user debian \
|
||
|
--generic-ssh-key /home/debian/formation-keypair \
|
||
|
--generic-ip-address 172.16.x.x \
|
||
|
docker-node-x
|
||
|
```
|
||
|
|
||
|
```
|
||
|
docker-machine env docker-node-x
|
||
|
```
|