deb系列docker换源
安装docker-compose
sudo apt update
sudo apt upgrade
sudo apt install docker.io
sudo apt install docker-compose
创建docker组
sudo groupadd docker
sudo usermod -aG docker $username
docker常用systemctl命令
sudo systemctl enable docker
sudo systemctl start docker
sudo systemctl status docker
查看docker信息
sudo docker info
docker换源
sudo nano /etc/docker/daemon.json
# 添加一下内容;
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"registry-mirrors": [
"https://docker.1panel.live/"
]
}
jq | /etc/docker/daemon.json # 检查json格式
sudo systemctl daemon-reload && sudo systemctl restart docker #重新加载json文件和重启docker
本文是原创文章,采用 CC BY-SA 4.0 协议,完整转载请注明来自 KipJayChou
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果