1. Preface
Docker has recently launched a stable version that can run on Win10 and Macs, so let's take a quick look. The goal of Docker Publishing Mac and Windows is simple-developers can make it easier and easier to use Docker on research and development machines. Here are some of the improvements made in this release:
Faster and more reliable-with a virtual monitoring program (hypervisors) on the local development environment, each operating system can be implanted (without VirtualBox);
Improved Docker tool integration-developers can bind all Docker tools to local applications;
Improve the development process--a large number of equipment can be used for code and data, and more convenient access to the running container running on the local network, IDES Support Online debugging, make code iteration faster and easier;
Support Enterprise Network, MAC and Windows version easy to access enterprise VPN;
All new features can be used on the Docker 1.12 engine;
Supports automatic updates, whether stable or beta.
2. Installation Preparation
Required conditions are: 64bit Windows 10, turn on Hyper-V
2.1 Download Docker for Windows
Can be downloaded from the following address on the official website
Https://download.docker.com/win/stable/InstallDocker.msi
2.2 Turn on Win10 Hyper-V
Control Panel, programs, enable or turn off Windows features, select Hyper-V
Automatic Restart after completion
3. Installing Docker
Install with the installation package you just downloaded, and after the installation is complete, start Docker
If Hyper-V is not turned on, you are prompted to turn on Hyper-V when starting Docker
If you start with insufficient memory and boot failure, you can adjust the VM memory size in Settings
4. Use Docker4.1 to view information such as version
Docker info
4.2 Run Hello World
Docker Run Hello-world
4.3 Launching an Ubuntu container
Docker run-it Ubuntu Bash
4.4 View All containers
Docker Ps-a
4.5 Starting an Nginx container
Docker run-d-P 81:80--name webserver nginx
To view a container in operation
Docker PS
Browser Access Confirmation
5. PostScript
Docker finally has a stable version that can run on Win10 and Mac, and can try to deploy it in a production environment.
Related articles:
Docker4dotnet #1 – Past Life & World Hello
Docker4dotnet #2 containerized Host
docker– 10 things you should know
Docker4dotnet #3 using VSC and Docker to develop ASP. NET Core+mysql applications on MacOS
Original address: http://www.cnblogs.com/ee900222/p/docker_4.html
Running Docker on WIN10