Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-compose安装Portainer可视化工具 #66

Open
toplhy opened this issue Jul 1, 2024 · 0 comments
Open

Docker-compose安装Portainer可视化工具 #66

toplhy opened this issue Jul 1, 2024 · 0 comments
Labels

Comments

@toplhy
Copy link
Owner

toplhy commented Jul 1, 2024

记录使用docker-compose安装docker可视化管理工具portainer

docker-compose.yml

version: '3'
services:
  portainer:
    image:portainer/portainer
    container_name: portainer
    restart: always
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "./portainer/data:/data"
      - "./portainer/Portainer-CN:/public"   # 汉化
    environment:          # 设置环境变量,相当于docker run命令中的-e
      TZ: Asia/Shanghai
      LANG: en_US.UTF-8
    ports:               # 映射端口
      - "9000:9000"

docker command

docker run -d -p 9000:9000 --restart=always --name portainer -v /var/run/docker.sock:/var/run/docker.sock -v /data/portainer:/data portainer/portainer
@toplhy toplhy added the Docker label Jul 1, 2024
@toplhy toplhy closed this as completed Jul 11, 2024
@toplhy toplhy reopened this Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant