Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

boot2docker changing IP address from default 192.168.59.103 to 192.168.59.104 (Mac)

boot2docker was running all the time on 192.168.59.103.

Suddenly the command boot2docker ip gives 192.168.59.104.

The problem is that now I have to change all my /etc/hosts entries.

How can I make the boot2docker IP address static?

Side question: Should I avoid boot2docker completely and run everything inside a Vagrant machine?

I am running on Mac OS X v10.10 (Yosemite).

like image 556
ramden Avatar asked Oct 19 '22 18:10

ramden


1 Answers

If you haven't already done so, create a Docker configuration with:

boot2docker config > ~/.boot2docker/profile

Then edit your Docker configuration with the following line:

UpperIP = "192.168.59.103"

Then follow the other steps to clear out your old Docker images and start a new one.

I was also having issues connecting to Docker, but a system restart resolved them.

like image 76
scramblor Avatar answered Oct 22 '22 09:10

scramblor