1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| vim /etc/docker/daemon.json
{
"registry-mirrors": [
"https://kfwkfulq.mirror.aliyuncs.com",
"https://2lqq34jg.mirror.aliyuncs.com",
"https://pee6w651.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"default-ulimits": {
"nofile": {
"Name": "nofile",
"Soft": 64000,
"Hard": 64000
},
"memlock": {
"Name": "memlock",
"Soft": -1,
"Hard": -1
}
},
"exec-opts": ["native.cgroupdriver=systemd"],
"data-root": "/docker",
"log-driver": "json-file",
"log-opts": {"max-size":"500m", "max-file":"3"},
"insecure-registries": ["192.168.142.99"],
"dns": ["180.76.76.76","119.29.29.29"]
}
systemctl daemon-reload
systemctl restart docker
|