Docker host-only cidr conflicts with the network address of a host interface

 

machine VM unreachable if the virtualbox host-only network conflicts with one of the machine host's network interfaces #3060

 https://github.com/docker/machine/issues/3060

The reason is mentioned: because the IP segment that docker wants to use is the same as the IP segment used by your host, the solution is to delete the docker image and use another IP segment when creating it.

C:\Program Files\Docker Toolbox\start.shOpen the file  with Notpade++ and
find STEP="Checking if machine $VM exists"the following "${DOCKER_MACHINE}" create -d virtualbox $PROXY_ENV "${VM}" 
and add --virtualbox-hostonly-cidr "192.168.162.1/24" 
it to this sentence:

"${DOCKER_MACHINE}" create --virtualbox-hostonly-cidr "192.168.162.1/24" -d virtualbox $PROXY_ENV "${VM}"
  • 1

Then delete the default image file from VirtualBox and re-run Docker Quickerstart Terminal.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326253445&siteId=291194637