Docker-Machine Static IP Address.
1 minuto(s) de lectura
In this case we are going to modify the bootlocal.sh script to use static ip addres in vm generated using docker-machine.
Static IP Address:
Connect to the server and edit the bootlocal.sh file:
docker-machine ssh swarm-master1
vi /var/lib/boot2docker/bootlocal.sh
Modify the bootlocal.sh script:
#!/bin/sh
kill cat /var/run/udhcpc.eth0.pid
ifconfig eth2 172.26.100.101 netmask 255.255.255.0 up
kill cat /var/run/udhcpc.eth1.pid
ifconfig eth0 192.168.17.101 netmask 255.255.255.0 up
¿Do you see an error in this article, why do you sugest a review?
Tell me what do you think about this article @ o deja un comentario mas abajo
comments powered by Disqus