Installing Docker under Windows

Source: Internet
Author: User
Tags docker hub docker compose docker run oracle vm virtualbox docker toolbox docker machine vm virtualbox

Windows users can install Docker software using Docker Toolbox. Docker Toolbox includes the following Docker tools:
    • docker CLI client: Creating the Docker engine for image and container
    • docker machine: Support for performing Docker engine commands on Windows terminals
    • Li style= "margin:0px; padding:0px; letter-spacing:1px ">docker Compose: Support docker-compose command
    • kitematic:docker GUI
    • docker QuickStart shell preconfigured for a Docker command-line environment
    • oracle VM VirtualBox
because Docker engine running in the background is the Linux-specific kernel feature used, you can no longer run Docker engine locally on Windows. You must use the Docker Machine command--docker-machine to create a small Linux virtual machine on your native computer. This virtual machine allows you to use Docker Engine on Windows systems.
First step: Check the version
    1. Right-click My Computer, properties

      If your operating system does not meet the requirements, you will need to upgrade the operating system.
    2. Make sure your Windows operating system supports hardware virtualization and turns on re-entry Windows 8 or 8.1 Task Manager->performance, below the CPU you can see the virtualization status: If virtualization does not have enable, Please open it manually. For Windows 7 to perform Microsoft? hardware-assisted Virtualization Detection Tool and follow the instructions. after downloading Havdetectiontool.exe, double-click:
the prompt table name machine does not have virtualization support turned on. Open in the BIOS.
    1. Confirm if the operating system is 64-bit (x64)
How you confirm depends on your version of Windows. For more information, see How to determine whether a computer is running a 32-bit version or 64-bit version of the Window s operating system.
Step Two: Install Docker Toolbox in this section, you talk about installing the Docker Toolbox software and the "helper" app. The Setup program installs the following software:
    • Docker Client for Windows
    • Docker Toolbox management tool and ISO
    • Oracle VM VirtualBox
    • Git msys-git UNIX Tools
If you installed a previous version of VirtualBox, do not reinstall it in Docker Toolbox. When the prompt message appears, do not check. If you are already running virtual Box, you must close it before you start the installation.
  1. Docker Toolbox:https://www.docker.com/products/docker-toolbox
  2. Click Windows to start the download. If the official website is slow, you can go to this address download:https://get.daocloud.io/toolbox/
  3. double-click Setup to start the installation process. the installer will appear with the following dialog box: "Setup-docker Toolbox" If Windows security prompts you to choose whether to allow changes to the program, select Yes. The installation Wizard will then appear:
  4. Click next to start the installation using the default settings . Use the default installation. The installer will take a few minutes to install all the components:
  5. When Windows security prompts are allowed to make a change, make sure to select allow for the changes that are made to it. After the installation is complete, the installation program reports that the installation was successful:
  6. Cancel the "View shortcuts in File Explorer" option and click Finish.

Step three: Verify that the installation installer will put Docker Toolbox and VirtualBox into your application directory. You can launch Docker Toolbox ice to run a simple docker command.
  1. Find the Docker Toolbox icon on the desktop.

  2. Click the icon to open the Docker Toolbox terminal.if prompted to allow VirtualBox to make changes to your computer, select Yes. The terminal will do a few things to set up the Docker Toolbox. Upon completion, the terminal will appear with a$The prompt character.

    The terminal will run a special bashenvironment, rather than the standard Windows command line. The bashthe environment is what Docker needs.
  3. in the $ Click the mouse button nearby to activate the command line Environment . If you are unfamiliar with the command-line window, please refer to it for a brief description. The $ prompt is traditional . You can enter the command line from the commands lines. Your mouse foot pad will be | Show. Enter the command and return to execute the command.
  4. input Commanddocker run hello-worldthen enter. If the command is working properly, the output should look like this:$ Docker Run Hello-world
    Unable to find image' Hello-world:latest 'Locally
    Pulling Repository Hello-world
    theC95931e552:download Complete
    A8219747be10:download Complete
    status:downloaded Newer image forHello-world:latest
    Hello fromDocker.
    This message shows the your installation appears to be working correctly.

    To generate ThisMessage, Docker took the following steps:
    1.The Docker engine CLI client contacted the Docker engine daemon.
    2.The Docker Engine Daemon pulled the"Hello-world"Image fromThe Docker Hub.
    (assuming it is not already locally available.)
    3.The Docker Engine Daemon created aNewContainer fromThat image which runs the
    Executable that produces the output is currently reading.
    4.The Docker engine daemon streamed that output to the Docker engine CLI client, which sent it
    to your terminal.

    ToTrySomething more ambitious, you can run an Ubuntu container with:
    $ docker run-it Ubuntu bash

    For more examples and ideas, visit:
    Https//docs.docker.com/userguide/
Original address: https://docs.docker.com/windows/step_one/

Installing Docker under 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: 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.