Book Image

Developing with Docker

By : Jaroslaw Krochmalski, Jarosław Krochmalski
Book Image

Developing with Docker

By: Jaroslaw Krochmalski, Jarosław Krochmalski

Overview of this book

This fast-paced practical guide will get you up and running with Docker. Using Docker, you will be able to build, ship, and run many distributed applications in real time. You will start with quickly installing Docker and start working with images and containers. We will present different types of containers and their applications, and show you how to find and build images. You will learn how you can contribute to the image repository by publishing different images. This will familiarize you with the image building process and you will be able to successfully run your programs within containers. By finishing this book, you will be well equipped in deploying your applications using Docker and will have a clear understanding of concepts, techniques, and practical methods to get it running in production systems.
Table of Contents (16 chapters)
Developing with Docker
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Summary


Docker provides a small but very flexible set of instructions for creating images using Dockerfiles. We have illustrated all the commands, their syntax, and their usage techniques in order to effectively create Docker images. Instructions have a rather simple syntax and are very well documented in the official Docker documentation. Creating your own images will not be very tricky. However, you will need to stick some best practices and guidelines, recommended by Docker. First of all, you should keep in mind that the containers created by your images should be ephemeral, that is, they should be able to be stopped, destroyed, and recreated with absolute minimum configuration. The images should be clean as far as possible, so starting from an empty build context, adding only what is necessary and using a .dockerignore is a way to go. Also, the YAGNI (You ain't gonna need it) principle, known from clean-code development practices has a very important meaning when it comes to creating...