Dockerfile - 基本概念
2 分鐘閱讀
Dockerfile 常用指令、Node.js 範例、build cache 與避免把不必要檔案打進 image 的做法。
Dockerfile 常用指令、Node.js 範例、build cache 與避免把不必要檔案打進 image 的做法。
Docker image 的唯讀分層、tag 與 digest,以及 pull、build、inspect、rm 常用指令。
用 nginx 練習 docker run、port publishing、bind mount 與 container 生命週期。
Docker container、image 與 VM 的差異,以及容器化為什麼能讓開發環境更一致。