Installation docker for windows

Disclaimer: This blog is used as a note, the contents of the original but also learn from other bloggers, open - learning - learn https://blog.csdn.net/chushoufengli/article/details/90897911

Description aliyun docker image warehouse

So the next installation docker for windows

(Editor: Original: https: //blog.csdn.net/zsf211/article/details/89893032)

(1) Before installation:

Docker for Windows is a Docker Community Edition (CE) applications. Docker for Windows installation package contains everything needed to run on Windows systems Docker. If you do not want to install a virtual machine, you want to install directly in the Windows operating system and learning to use docker, then you first have to check your system meets the Docker for Windows Installation and use requirements. win10 install the required environment-dependent Docker:

The current version of the run Docker for Windows (1607 to commemorate the updated version 14393 or higher) in 64-bit Windows 10 Pro, Professional Edition, Enterprise Edition and Education Edition on. Ps: Home Edition is not enough, if you are a home version, then one is to upgrade to Professional Edition, the second is to install Docker Toolbox.

If you meet Docker for Windows environmental conditions, then first check the computer virtualization opens up no: Go to Task Manager (ctrl + alt + delete), click Properties -> cpu, see virtualization is enabled, if the virtualization is disabled, then you need to restart the computer to enter the bios open virtualization (our hair are supported notebook cpu virtualization into the bios press esc restart -> press f12 -> to open virtualization). After opening virtualization reboot into the Task Manager to see if virtualization is enabled:

And then entering the computer's Control Panel -> Programs -> Enable or disable Windows features -> the hook on Hyper-v, when a computer will reboot, you can later download and install a Docker for Windows: 

(2) Downloads:

https://docs.docker.com/docker-for-windows/install/#download-docker-for-windows  download the installation package to a docker.

Sign up above the amount required external network to download a lot of trouble, do not know the beginning of the article is not a simple point aliyun link

(3) extracting installation package:

Directly run the installer, after a small whale icon appears in the bottom right corner, click can visit docker account sign in, or you can run Kitematic directly, you will be prompted to download Kitematic, Kitematic is a graphical client
在这里插入图片描述

After a successful download archive into the installation package directory docker in, remember that docker sibling directory
在这里插入图片描述

Click again to Kitematic, if not logged in step 5 docker, here too you are prompted to log in.

After landing Kitematic successful emergence of a visual area on the right, it shows many of the docker mirror.
在这里插入图片描述

Click hello-world-ngnix the lower right corner to create a new container, of course, can be used here docke cli command pull (docker pull hello-world-ngnix) and operating mirror (docker run hello-world-ngnix -d --name hellodemo ) mirror.

(4) Configuration

The main source is the mirror image configuration dubbed the country, because the use of foreign source is mirrored in the pull is too slow. win10 configuration is very simple. Here unified use Ali cloud container mirror service, you need to register an account.

å¨è¿éæå¥å¾çæè¿°

After the right-click menu, select Settings in the lower right corner of the system tray icon to open the configuration window on the left navigation menu to select Docker Daemon. JSON string in the edit window, fill in below the accelerator Address:

{
  "registry-mirrors": ["https://xxxxxx.mirror.aliyuncs.com"]
}
(5)测试

配置镜像源之后重新启动docker。

docker -v

Docker version 18.09.4, build d14af54266
docker info

Containers: 13
 Running: 13
 Paused: 0
 Stopped: 0
Images: 29
Server Version: 18.09.4
Storage Driver: overlay2
 Backing Filesystem: xfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: bb71b10fd8f58240ca47fbb579b9d1028eea7c84
runc version: 2b18fe1d885ee5083ef9f0838fee39b62d653e30
init version: fec3683
Security Options:
 seccomp
  Profile: default
Kernel Version: 3.10.0-957.10.1.el7.x86_64
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 5.565GiB
Name: localhost.localdomain
ID: 6EZY:RH5J:WK3K:TYWQ:JA3J:GEMI:D3TC:624E:FJWV:YZHQ:SORC:VTEW
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 192.168.0.104
 127.0.0.0/8
Registry Mirrors:
 https://xxxxxx.mirror.aliyuncs.com/
Live Restore Enabled: false
Product License: Community Engine
docker images

REPOSITORY                      TAG                 IMAGE ID            CREATED             SIZE
xxxxx                            v1                  xxxxx        3 days ago          1.15GB      5.53MB

 

 

 

 

Guess you like

Origin blog.csdn.net/chushoufengli/article/details/90897911