GuanM
首页 归档 Linux Docker
2024-08-01 / Linux , 脚本 , Docker

Docker 设置国内镜像站 私有

管某 1 分钟阅读

1
2
3
4
5
6
7
8
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://docker.54sxh.cn"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
标签 Docker 随记
上一篇 安装TCPing 下一篇 k8s 执行报错 error: specifying a root certificates file with the insecure flag is not allowed

© 2026 GuanM

记录问题,也记录答案。