官术网_书友最值得收藏!

Building your first container

In the previous section, you have learned how to install Docker Desktop for Windows and how to run simple Windows and Linux containers. This section will demonstrate how to build a custom Docker image using Dockerfile and how to perform the most common actions on running containers, such as accessing logs and perform exec into a container.

A Dockerfile is a text file that contains all the commands that the user would execute in order to assemble a container image. As this book does not focus on Docker only, this section will be a short recap of common Docker operations. If you are interested in Dockerfiles themselves and building containers, please refer to the official documentation at:  https://docs.docker.com/engine/reference/builder/.

As an example, we will prepare a Dockerfile that creates a Windows container image of Microsoft IIS hosting a demonstration HTML web page. The image definition won't be complicated in order to demonstrate operation principles.

主站蜘蛛池模板: 泽州县| 五莲县| 吉隆县| 沾益县| 济南市| 广河县| 南召县| 杂多县| 沙洋县| 泗阳县| 时尚| 南雄市| 吉木萨尔县| 横山县| 陇川县| 东乌| 萍乡市| 宁蒗| 广昌县| 江津市| 贡山| 临沂市| 新化县| 临洮县| 胶南市| 同仁县| 德惠市| 栾川县| 洞口县| 封开县| 芒康县| 钦州市| 西贡区| 绥德县| 望城县| 开鲁县| 专栏| 大厂| 莆田市| 浦江县| 隆林|