After installing Docker on your Mac, you need to start Boot2docker to load the VMS before you can use the Docker command, but when I install Boot2docker, I start boot2docker an error occurs:
Waiting for VM and Docker daemon to start.............................................................................ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooStarted. Trying to get Docker socket one more timeError requesting socket: exit status 2
The test has been unable to begin.
Later on the overseas site to find a round, found to start Boot2docker to ensure that Mac native/etc/hosts have and only one line of localhost, point to 127.0.0.1.
sudo vim/etc/hosts
After modifying the Hosts file, run a command to delete the previous VM
Boot2docker Delete
And then run it again
Boot2docker Init
It's OK.
Boot2docker failed to start after installing Docker on MAC