码迷,mamicode.com
首页 > 其他好文 > 详细

swarm 服务器安装

时间:2019-04-16 01:20:10      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:svc   man   work   火墙   trie   worker   key   conf   net   

apt install docker.io
---------------------
--配置加速器、私有仓库地址
---------------------
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-‘EOF‘
{
"registry-mirrors": ["https://plapxez2.mirror.aliyuncs.com"],
"insecure-registries":["docker.codedev.top:88"]
}
EOF
systemctl daemon-reload
systemctl restart docker
ufw disable

mkdir -p /home/deploy/log
mkdir -p /home/deploy/upload/html
mkdir -p /home/deploy/upload/img
mkdir -p /home/conf/ng/cert

--------------------上传证书文件及ng配置信息
sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/nginx.conf root@192.168.0.77:/home/conf/ng/nginx.conf \
sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/default.conf root@192.168.0.77:/home/conf/ng/default.conf \
sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/cert/test.sgmwsales.com_chain.crt root@192.168.0.77:/home/conf/ng/cert/test.sgmwsales.com_chain.crt \
sshpass -p "TEL.lz@189" scp -P 6025 /Users/mark/work/git/sgmw/svc/docker/ng/cert/test.sgmwsales.com_private.key root@192.168.0.77:/home/conf/ng/cert/test.sgmwsales.com_private.key \
-------------------------
--Manager、worker上分别运行,谨慎执行
-------------------------
docker swarm init
docker network create -d overlay wl-network

------------
--防火墙
------------
ufw disable

swarm 服务器安装

标签:svc   man   work   火墙   trie   worker   key   conf   net   

原文地址:https://www.cnblogs.com/kuailewangzi1212/p/10714158.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!