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
34
35
36
37
38
|
## 编辑 /etc/docker/daemon.json
## 添加 "insecure-registries" 里面的 "docker.williamlfang.com:58080"
sudo vim /etc/docker/daemon.json
{
"registry-mirrors" : [
"https://mirror.baidubce.com",
"http://ovfftd6p.mirror.aliyuncs.com",
"http://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"insecure-registries" : [
"registry.docker-cn.com",
"docker.mirrors.ustc.edu.cn",
"docker.williamlfang.com:58080",
"192.168.1.88:5000",
"192.168.1.183:5000",
"10.32.111.107:5000"
],
"debug" : true,
"experimental" : true,
"log-driver": "json-file",
"log-opts": {
"max-size": "1m",
"max-file": "10"
}
}
sudo systemctl restart docker
## 获取镜像
docker pull docker.williamlfang.com:58080/testing
Using default tag: latest
latest: Pulling from testing
Digest: sha256:90659bf80b44ce6be8234e6ff90a1ac34acbeb826903b02cfa0da11c82cbc042
Status: Downloaded newer image for docker.williamlfang.com:58080/testing:latest
docker.williamlfang.com:58080/testing:latest
|