Skip to content

Commit e3269f1

Browse files
authored
Update docker.sh
1 parent 33ae5e8 commit e3269f1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

linux/docker.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,14 @@ wget -O /etc/yum.repos.d/docker-ce.repo https://repo.huaweicloud.com/docker-ce/l
44
yum makecache fast
55
yum install -y docker-ce
66
kill -TERM 1
7+
sudo mkdir -p /etc/docker
8+
sudo tee /etc/docker/daemon.json <<-'EOF'
9+
{
10+
"registry-mirrors": [
11+
"https://hub-mirror.c.163.com",
12+
"https://mirror.baidubce.com"
13+
]
14+
}
15+
EOF
16+
sudo systemctl daemon-reload
17+
sudo systemctl restart docker

0 commit comments

Comments
 (0)