Docker for mac is unable start the default VM

Expected behavior

Docker for mac (native app) is supposed to run

Actual behavior

It ran for an hour and started returning error when we try to run any containers.

$ docker-machine ip
Error getting IP address: exit status 126

Information

$ docker version
Client:
Version: 1.10.3
API version: 1.22
Go version: go1.5.3
Git commit: 20f81dd
Built: Thu Mar 10 21:49:11 2016
OS/Arch: darwin/amd64

Server:
Version: 1.10.3
API version: 1.22
Go version: go1.5.3
Git commit: 20f81dd
Built: Thu Mar 10 21:49:11 2016
OS/Arch: linux/amd64

Steps to reproduce the behavior

  1. Installed Docker for Mac, native app
  2. Try to run a container and list docker-machin ip, it returns the following error.

Error getting IP address: exit status 126

This error persisted till I rebooted my mac and tried to start the containers using kitematic dashboad, not sure what is co-relation here. It looks like though the containers were running the “docker.local” was not getting resolved or was not pingable.

docker-machine ip will not work with docker for mac, as it is not configured as a docker machine. You can use docker.local as the address, or docker port will show you where to connect.

1 Like