I’m new to docker and I’m going through the tutorial. Part 4 tells me to run docker-machine create --driver virtualbox myvm1
so I did and it worked as I have VB installed. I’ve gone through the rest of Part 4 and when I try to access the IP’s that docker setup I get an error saying the site can’t be reached. Why is this not working and how can I fix it? Do I need to edit my hosts file?
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
myvm1 * virtualbox Running tcp://192.168.99.100:2376 v18.05.0-ce
myvm2 - virtualbox Running tcp://192.168.99.101:2376 v18.05.0-ce