If you run a docker service using a Docker Compose file, follow these steps to update the service:

# Navigate to the directory containing your docker compose file
cd </path/to/your/compose/file/directory>

# Pull latest version
docker compose pull

# Stop and remove older version
docker compose down

# Start the container
docker compose up -d
最後修改日期: 2025/12/15

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。