docker 工程部署
sudo yum install -y docker
sudo systemctl start docker.service
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo vi /etc/docker/daemon.json 添加下方内容(参考):
{
"log-driver": "json-file",
"log-opts": {
"max-size": "500m",
"max-file": "10"
},
"dns": ["8.8.8.8","114.114.114.114"]
}
sudo vi /etc/sysconfig/docker 删除==> --log-driver=journald
sudo systemctl daemon-reload
sudo systemctl restart docker
无可奈何花落去,似曾相识燕归来