9. 疑難排解(FAQ) 權限與掛載 Linux 檔案權限導致容器內無法寫入 → 建議使用具名 volume 或調整 uid/gid Windows / macOS 特殊議題 檔案系統 I/O 效能:避免大量小檔 bind mount 網路模式差異:host 模式不可用(mac/Windows) 健康檢查不通過 檢查 healthcheck 指令、依賴服務啟動順序、探針超時 Build Cache 不生效 調整 Dockerfile 步驟順序,將變動最小化靠後 清理資源(小心使用) docker system prune -af docker volume prune -f