11. 🐳 PORTAINER (Quản lý Docker)

11.1. Tạo volume và chạy container

bash

docker volume create portainer_data

docker run -d \
  --name portainer \
  --restart unless-stopped \
  -p 8000:8000 \
  -p 9443:9443 \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v portainer_data:/data \
  portainer/portainer-ce:latest

11.2. Cấu hình lần đầu

  • Truy cập: https://192.168.3.5:9443
  • Tạo user admin: Your_Username / Your_Password
  • Chọn “Get Started” để quản lý Docker local

11.3. Cấu hình trên Nginx Proxy Manager

  • Domain: docker.huancoc.com
  • Scheme: https (vì Portainer dùng HTTPS)
  • Forward IP: 192.168.3.5
  • Forward Port: 9443
  • SSL: Request Let’s Encrypt và bật Force SSL

By huannv

Leave a Reply

Your email address will not be published. Required fields are marked *