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
- Right-click My Computer, properties
If your operating system does not meet the requirements, you will need to upgrade the operating system.
- 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.
- 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.
- Docker Toolbox:https://www.docker.com/products/docker-toolbox
- Click Windows to start the download. If the official website is slow, you can go to this address download:https://get.daocloud.io/toolbox/
- 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:
- 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:
- 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:
- 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.
- Find the Docker Toolbox icon on the desktop.
- 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 bash
environment, rather than the standard Windows command line. The bash
the environment is what Docker needs.
- 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.
- input Command
docker run hello-world
then 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