Mac Install Docker tutorial _docker

Source: Internet
Author: User
Tags install brew

Order

Because the cloud host will soon expire, or on the Mac on the first lap Docker environment bar.

Install Brew

CURL-LSSF Http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz-c/usr/local--strip 1

Boot2docker Way (will be discarded)

Install Docker

sudo brew install boot2docker
boot2docker init

Start

Boot2docker up

Update environment variables as prompted

Export DOCKER_CERT_PATH=/USERS/XIXICAT/.BOOT2DOCKER/CERTS/BOOT2DOCKER-VM
export Docker_tls_verify=1
Export docker_host=tcp://192.168.59.103:2376

Docker-machine (recommended)

Download Docker-toolbox
Can download from Daocloud

Installation
After downloading is a dockertoolbox-1.9.1i.pkg, and then double-click the installation, if the previous boot2docker is running, you need to close:

Boot2docker down

Start

Docker-machine Start Default

Alternatively, double-click Docker Quickstart Terminal, and if zsh is installed, you can change the following configuration:

Bash-c "Clear && docker_host=tcp://192.168.99.100:2376 docker_cert_path=/users/xixicat/.docker/machine/ Machines/default docker_tls_verify=1/bin/zsh "


Enter

Docker-machine SSH Default

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.