1. docker配置
{
"registry-mirrors":["https://auuzc4t8.mirror.aliyuncs.com"],
"insecure-registries":["0.0.0.0/0"],
"log-driver":"json-file",
"log-opts": {"max-size":"1024m", "max-file":"3"}
}
2. 内网穿透和VPN搭建
xxx: 站名
num: 序号
curl http://git.fast-fun.cn:92/ruili-station/readme/raw/master/init-per.sh -o init-per.sh && sudo chmod a+x init-per.sh && bash init-per.sh xxx num
vpn密码: qx123456
如果只能ping 251其他IP不行,需要查看ovpn_env.sh: 中的OVPN_BR_ETH_IF=enp2s0
3. 启动ptr agent
docker run -d \
-p 9001:9001 \
--name portainer_agent \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/volumes:/var/lib/docker/volumes \
portainer/agent:2.19.1