Docker可视化工具Portainer in Docker
创建文件docker-compose.yaml:
yaml
version: "3"
services:
portainer:
image: portainer/portainer:latest
container_name: portainer
ports:
- "9000:9000"
restart: always
volumes:
- /etc/localtime:/etc/localtime
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data:rw
volumes:
portainer_data:
启动后访问9000端口,根据网页指引进行后续设置即可。