Skip to content

Commit

Permalink
modify docker setting
Browse files Browse the repository at this point in the history
  • Loading branch information
zzxCNCZ committed Sep 5, 2024
1 parent 29b5b56 commit 8479aff
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sp/python/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,7 @@ pip install package-name --index-url https://mirrors.sustech.edu.cn/pypi/web/sim


## Reference
[PYPI package搜索](https://pypi.org/)
[PYPI package搜索](https://pypi.org/)


# pypi usage
24 changes: 24 additions & 0 deletions tools/docker/install-setting.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,30 @@ sudo systemctl restart docker

```

## 配置docker镜像源及日志限制
```bash
sudo vim /etc/docker/daemon.json

# 内容如下 :
{
"registry-mirrors":
[
"https://docker.940303.xyz"
],
"insecure-registry":
[
"docker.940303.xyz"
],
"log-driver": "json-file",
"log-opts":
{
"max-size": "100m",
"max-file": "3"
}
}

```

## snap版本docker镜像加速
```bash
$ vim /var/snap/docker/current/config/daemon.json
Expand Down

0 comments on commit 8479aff

Please sign in to comment.