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 ...

Get Developing with Docker now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.