Install Docker under Centos7+win10

1. centos7 comes with the docker installation file, so just run the installation command directly:

yum install docker

2. Start docker

systemctl  start docker.service
systemctl  enable docker.service

3. View status information

docker version//View version

docker info//View docker details

docker images//View images

Solve the error problem:

。。。

win10 install docker

1. Download docker for windows from the official website

https://docs.docker.com/docker-for-windows/

2. Win10 enables Hyper-V function

Control Panel -> Programs -> Turn Windows Features On or Off -> Check Hyper-V, then restart the computer.

3. Click Install directly.

4. Configure the domestic mirror address

Modify daemon.json

The mirror address of docker can be customized by modifying the registry-mirrors property in daemon.json.

In the Windows environment, the file is stored in the C:\Users\{userName}\.docker directory, where {userName} is your Windows username.

In the Linux environment, this file is generally stored in the /etc/docker/ directory.

Add custom mirror addresses to registry-mirrors, such as:

{"registry-mirrors":["https://registry.docker-cn.com"],"insecure-registries":[], "debug":true, "experimental": false}

The commonly used mirror addresses are as follows:

https://docker.mirrors.ustc.edu.cn
https://registry.docker-cn.com 

restart the docker service

After modifying the daemon.json file, you need to restart to take effect.

In the Windows environment, you can right-click the docker icon in the lower right corner and click Restart:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324928306&siteId=291194637