What is the relationship between running a docker container and creating a docker machine?

Are you using “Docker for Mac” or “Docker Toolbox”? Is there a whale icon on your menu bar?

The not-toolbox “Docker for Mac” product tries hard to hide the VM (it is there in reality, but it’s tricky to get at) and it doesn’t interact with docker-machine at all. When you run

you can access those published ports from the host on the localhost IPv4 address 127.0.0.1.

1 Like