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

  • Docker on Windows
  • Elton Stoneman
  • 361字
  • 2021-07-02 19:53:17

Learning Docker with this book

Every code listing in this book is accompanied by a full code sample on my GitHub repository at https://github.com/sixeyed/docker-on-windows. The source tree is organized into a folder for each chapter, and for each chapter there's a folder for each code sample. In this chapter, I've used two samples to create Docker images, which you'll find in ch01\ch01-whale and ch01\ch01-az.

The code listings in the book may be condensed for the page, but the full code is always in the GitHub repository.

I prefer to follow along with the code samples when I'm learning a new technology, but if you want to use working versions of the demo applications, every sample is also available as a public Docker image on Docker Cloud. Wherever you see a docker container run command, the image already exists on Docker Cloud, so you can use mine rather than building your own if you wish. All the images in the dockeronwindows organization, such as this chapter's dockeronwindows/ch01-whale—were built from the relevant Dockerfile in the GitHub repository.

My own development environment is based on Windows Server 2016, where I use Docker for Windows. My test environment is based on Windows Server 2016 Core, where I run Docker as a Windows Service. I've also verified all the code samples using Windows 10.

I'm using version 17.06 of Docker, which is the latest release at the time of writing. Some of the features I demonstrate need version 17.06 as a minimum--such as multi-stage builds and secrets. But Docker has always been backward-compatible, so if you're using a version later than 17.06, then the sample Dockerfiles and images should work in the same way.

My goal is for this to be a definitive book about Docker on Windows, so I've covered everything from the 101 on containers through modernizing .NET apps with Docker and the security implications of containers to CI/CD and administration in production. The book ends with a guide to moving forward with Docker in your own projects.

If you want to discuss the book or your own Docker journey with me, feel free to ping me on Twitter at @EltonStoneman.
主站蜘蛛池模板: 淄博市| 密云县| 浙江省| 靖西县| 城口县| 金湖县| 益阳市| 渭源县| 全州县| 张掖市| 漯河市| 南阳市| 平顶山市| 湄潭县| 巴林右旗| 铁力市| 清流县| 哈巴河县| 苏州市| 福清市| 搜索| 开封县| 湾仔区| 东乌珠穆沁旗| 扎鲁特旗| 星座| 巴中市| 柞水县| 武宣县| 金山区| 武清区| 阳春市| 台山市| 高邮市| 当雄县| 海淀区| 剑阁县| 长垣县| 大荔县| 宝丰县| 明光市|