Failed to start boot2docker after installing Docker on Mac

Source: Internet
Author: User

Failed to start boot2docker after installing Docker on Mac

After installing Docker on Mac, you must start boot2docker to load VM before using the docker command. However, an error occurs when I start boot2docker after installing boot2docker:


Waiting for VM and Docker daemon to start ................................ ........................................ ..... oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooostarted. trying to get Docker socket one more timeError requesting socket: exit status 2
You cannot start the test.


Later, I found a round on overseas websites and found that when boot2docker was started, I had to ensure that there was only one localhost in/etc/hosts on the Mac host, pointing to 127.0.0.1.


Sudo vim/etc/hosts

After modifying the hosts file, run the following command to delete the vm.

Boot2docker delete


Then run again

Boot2docker init

OK.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.