Để update nginx-proxy-manager có 2 cách: - Cách 1 : nếu bạn deploy bằng Container thì vào Stack chọn " Pull new image and re-deploy" - Cách 2 : bạn cài Nginx bằng Docker compose trong môi trường CLI. Cách làm như sau Bước 1: xác định đường dẫn nơi cài Nginx Liệt kê các container: docker ps Tìm đường dẫn của container, ở đây là "nginx-proxy-manager" docker inspect <tên_container> | grep "com.docker.compose.project.working_dir" Bước 2: install bản mới nhất Di chuyển để thư mục chứa nginx (đã tìm thấy ở Bước 1) Kéo image về: docker compose pull Cài image: docker compose up -d Dọn dẹp image cũ (optional): docker image prune -f
Step-by-Step Update Commands 1. Stop the running Portainer container: # docker stop portainer 2. Remove the old container:bash # docker rm portainer (Note: This only deletes the container itself, not your persistent /data volume or settings). 3. Pull the latest Portainer Community Edition (CE) image:bash # docker pull portainer/portainer-ce:latest 4. Recreate and start the Portainer container: Make sure to re-use your exact same volume and port mappings (for example, /var/run/docker.sock and your portainer_data volume): # docker run -d -p 8000:8000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest (If you use HTTP on port 9000 instead of HTTPS on 9443, adjust -p 9000:9000 accordingly.)