Skip to content

Commit dc4b6a0

Browse files
committed
modify readme for modifying docker runtime directory
1 parent cfa4625 commit dc4b6a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,14 @@ chmod +x /usr/local/bin/docker-compose
6565
```
6666

6767
3. 配置容器日志
68+
- registry-mirrors,设置镜像源
69+
- graph,设置 docker 运行时根目录,默认是 /var/lib/docker
70+
- log-x,日志相关配置
6871
```shell
6972
cat > /etc/docker/daemon.json << EOF
7073
{
74+
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"],
75+
"graph": "/data/var/lib/docker",
7176
"log-driver": "json-file",
7277
"log-opts": {
7378
"max-size": "50m",

0 commit comments

Comments
 (0)