Use Docker Toolbox to build a unified environment on Windows

Source: Internet
Author: User
Tags docker toolbox

1. Download the Docker Toolbox first:

http://get.daocloud.io/#install-docker-for-mac-windows

2. Download and install the git Windows client

The installation is all gone, all allowed.

Click

Start Docker if you see the following interface is displayed successfully:

The first time is slow, to install the default this system, after startup, you can open your virtual machine to see

Next , how to place the local engineering catalog in a Docker container environment :

Prior agreement: I created a new workspace directory on the e-disk:

Then I'll mount this directory under Docker's virtual machine: Add shared folders, settings-sharing

As already seen above, the shared folder is workspace:

Then execute the following command in default: Mount-t vboxsf workspace/data

And then, no, then.

Next, we'll mount the directory with the-V parameter:

Here is my local directory structure:

Then look at the DOCKER-COMPOSE.YML:

# development.ymlversion:'2'services:php-Fpm:image:jackluo/PHP-FPM:5.6.3restart:always Volumes:-/data/php/tanzi/www:/var/www/HTML-/data/php/tanzi/data:/usr/local/var/Log web:image:index.alauda.cn/library/nginx Restart:always Links:-php-FPM Volumes:-/data/php/tanzi/config:/etc/nginx/CONF.D-/data/php/tanzi/data:/var/log/nginx Volumes_from:-php-FPM Ports:- the: theExpose:- the

And then you can docker-compose up-d.

The installation is done.

Use Docker Toolbox to build a unified environment on Windows

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.