While I can understand the surprise around the change, I actually prefer being able to connect to
localhost by default.
From a new user’s point of view, this may also be better behaviour since it avoids a major head-scratcher for them. When I was helping a bunch of co-workers on how to develop with Docker and Docker Machine a few months ago, they had real trouble with the problem of having to figure out the IP address. At the time, I told them “it’s a simple
docker-machine ip default away,” but it was still difficult for them to understand. Most of the time they would just assume the IP was always going to be
192.168.99.100, and run into problems later when it changed. Eventually many of them simply stopped using Docker Machine, and instead SSHed into Vagrant-provisioned VMs to do their Docker-based development. Obviously, not ideal.
Finally, this is similar to the behaviour seen on Linux natively, so users who are used to using Docker in Linux won’t be surprised when they run Docker for Mac.
All this being said, I do concur with the earlier suggestions to make it possible to not bind to
localhost. I just think the default should be to use