A simple introduction to using Docker under Mac

Source: Internet
Author: User
Tags docker run

English Official Installation Guide

Docker is a very hot technology now, Docker uses linux-specific kernel-specific, so Mac OS X cannot be run directly locally. However, it can be implemented by installing Boot2docker application. Boot2docker contains the virtual Box Vm,docker and boot2docker management tools.

With the help of running a Docker virtual machine on a Mac, the Docker client runs locally, the Docker daemon runs in the virtual machine, and Boot2docker runs locally as a management tool.

Installing Boot2docker

The easiest way to do this is to install directly with brew and automatically resolve dependencies.

$ brew install boot2docker

Note: You will need to install the Go Language pack during the installation process, which requires a wall-over to install.

Initialize Docker
$ boot2docker init$ boot2docker start$ $(boot2docker shellinit)
Test Docker
$ docker run hello-world

If all is well, then the simple installation of Docker is complete, and the specific use of Docker can refer to the official website documentation or
Reverse telecommuting, Docker quickly deploys node. JS applications

Wrong row

If it appears as: Error in run:failed-Get Machine "BOOT2DOCKER-VM": a machine does errors such as exist, you can use

$ boot2docker -v info$ sudo boot2docker -v info   #第一个命令不行再使用

Depending on the environment variables obtained, it is a valid solution to determine the possible problems with the setup of Virtual box, adjust the settings of virtual box, and then reload the Boot2docker.

A simple introduction to using Docker under Mac

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.