This commit is contained in:
Your Name
2025-01-23 00:08:45 +08:00
parent 0692b1aec1
commit 14728853aa

View File

@@ -25,10 +25,6 @@ chmod +x /usr/local/bin/docker-compose
sudo chown -R root:docker /data/docker
sudo chmod -R 770 /data/docker
{
"data-root": "/data/docker"
}
```shell
sudo apt-get update
@@ -46,7 +42,36 @@ sudo chmod -R 770 /data/docker
echo "NVIDIA Docker 已安装。"
```
## 更改镜像目录
vim /etc/docker/daemon.json
{
"data-root": "/data/docker"
}
## 换源
https://www.kelen.cc/dry/docker-hub-mirror
添加换源的mirror
```json
{
"data-root": "/data/docker",
"features": {
"buildkit": true
},
"registry-mirrors": [
"https://hub.rat.dev",
"https://dockerhub.icu",
"https://docker.unsee.tech"
],
"runtimes": {
"nvidia": {
"args": [],
"path": "nvidia-container-runtime"
}
}
}
```