Dockerfile 與Windows 容器 | windows docker
![Dockerfile 與Windows 容器](https://i.imgur.com/axBPWDg.jpg)
本文內容 Docker引擎包含可自動建立容器映像的工具。TheDockerengineincludestoolsthatautomatecontainerimagecreation.雖然您可以手動執行dockercommit命令來建立容器映像,但採用自動化映像建立程序有許多好處,包括:Whileyoucancreatecontainerimagesmanuallybyrunningthedockercommitcommand,adoptinganautomatedimagecreationprocesshasmanybenefits,including:將容器映像儲存為程式碼。Storingcontainerimagesascode.快速、精確地為維護和升級等用途重新建立容器映像。Rapidandpreciserecreationofcontainerimag...
![Dockerfile 與Windows 容器](https://i.imgur.com/H8YKUrg.jpg)
Docker 引擎包含可自動建立容器映像的工具。The Docker engine includes tools that automate container image creation. 雖然您可以手動執行 docker commit 命令來建立容器映像,但採用自動化映像建立程序有許多好處,包括:While you can create container images manually by running the docker commit command, adopting an automated image creation process has many benefits, including:
將容器映像儲存為程式碼。Storing container images as code. 快速、精確地為維護和升級等用途重新建立容器映像。Rapid and precise recreation of container images for maintenance and upgrade purposes. 容器映像和開發週期之間的持續整合。Continuous integration between container images and the development cycle.驅動這項自動化的 Docker 元件是 Dockerfile 和 docker build 命令。The Docker components that drive this automation are the Dockerfile, and the docker build command.
Dockerfile 是包含建立新容器映像所需指令的文字檔案。The Dockerfile is a text file that contains the instructions needed to create a new container image. 這些指令包含將用作基底的現有映像識別碼、在映像建立程序中執行的命令,以及部署容器映像新執行個體時所執行的命令。These instructions include identification of an exist...