Portainer-Docker容器管理可视化系统部署

参考:

https://mp.weixin.qq.com/s/dJKiKS3xFESkAlI-mPyA3g

环境:

centos7.9

一. 部署

镜像可选

1
2
portainer/portainer-ce:latest
registry.cn-hangzhou.aliyuncs.com/zznn/mycentos:portainer-ce
1
2
3
4
5
6
7
8
docker run -d \
--name portainer \
--net mybridge \
--restart unless-stopped \
--privileged=true \
-p 9000:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
portainer/portainer-ce:latest
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
version: '3'

services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
restart: unless-stopped
privileged: true
ports:
- "9000:9000"
networks:
- mybridge
volumes:
- /var/run/docker.sock:/var/run/docker.sock

networks:
mybridge:
driver: bridge

image-20231224171836665

fighting!