Docker for Windows

Source: Internet
Author: User
Tags docker run

    • Download Docker

For Windows:docker

Install, win key +r = cmd = Docker

    • Prepare the Mirror

I am using the image warehouse of NetEase hive: Mirror Warehouse

I used the image:

        • Php
        • Mysql
        • Nginx
        • Redis
        • Linux
    • Pull Image: Draw
        • Php7.1:docker Pull
        • Mysql5.6:docker Pull
        • Nginx:docker Pull
        • Redis:docker Pull
        • Linux:docker Pull
    • Create container Run

Create a new container and run the command

Docker run [options] Image [Commond] [Args]

E.m:docker run-p 3306:3306-v ~/opt/data/mysql:/var/lib/mysql-e mysql_root_password=123456-it docker/mysql

    • Delete Container RM

Docker RM Name

    • Run container start

Docker Start name

    • Stop the container stop

Docker Start name

    • Go to container exec

Docker exec-it MySQL Bash

    • Exit Container exit


    • Commands for executing command-specific programs

Docker for Windows

Related Article

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: 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.