Docker 管理工具 Portainer部署

一、官网

二、创建 docker-compose.yml,内容如下:

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

三、执行:

四、检查运行情况:

五、停止

05-04 00:06