Salt 一种全新的基础设施管理方式,部署轻松,在几分钟内可运行起来,扩展性好,很容易管理上万台服务器,速度够快,服务器之间秒级通讯。salt底层采用动态的连接总线, 使其可以用于编配, 远程执行, 配置管理等等。这比ansible的更有优势。下面安装saltstack UI界面。
# 卸载docker
sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
# 安装docker
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker docker-ce docker-ce-cli containerd.io
# 启动
sudo systemctl start docker
# 设置开启启动
sudo systemctl enable docker
# 验证docker版本
docker --version
vi /etc/docker/daemon.json
{
"registry-mirrors": [
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn"
]
}
sudo systemctl daemon-reload
sudo systemctl restart docker
git clone https://github.com/latenighttales/alcali.git
cd alcali
yum -y install docker
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
docker-compose up --scale minion=2
标签:运维,批量,--,systemctl,yum,https,linux,docker,com From: https://blog.51cto.com/yunguo/11927014