标签:启动 run command ice fail deploy rest cond 代码
一、官网
官网:http://www.portainer.io 演示地址:http://demo.portainer.io 用户名:admin 密码:tryportainer
复制代码 version: ‘3‘ services: portainer: image: portainer/portainer ports: - "21999:9000" command: "-H unix:///var/run/docker.sock" volumes: - "/var/run/docker.sock:/var/run/docker.sock" - "/mnt/disk/docker/portainer/data:/data" deploy: replicas: 1 restart_policy: condition: on-failure placement: constraints: - node.hostname==host-192-168-1-22
三、执行:
docker stack deploy -c docker-compose.yml portainer
四、检查运行情况:
ss -tanl
五、停止
docker stack rm portainer
六、启动
docker-compose up -d
标签:启动 run command ice fail deploy rest cond 代码
原文地址:https://www.cnblogs.com/blogxu/p/docker-portainer.html