Building your own Docker image is just about the easiest thing you can imagine doing with a command-line tool. It’s only 3 “words” to build the image, after all.
But getting the Dockerfile right, so that these three words will run correctly and produce the results that you want? Well… that’s a bit of a different story.
Dockerfile configuration has dozens of options.
And several of which seem to do the something similar or the same (ADD vs COPY, and ENTRYPOINT vs CMD, for example).
Then when you put all of these option in a single “page” of endless scrolling for the official Dockerfile reference, it’s easy to see how this can make Dockerfile configuration frustrating – especially if it’s not something you do on a regular basis.
To combat this problem, I created the Dockerfile Configuration and Advanced Dockerfile cheatsheets.
They represent the most common and useful Dockerfile configuration items, allowing you to quickly and easily be reminded of what options you should be using, when.
And like the Docker Management cheatsheet I created, they are free!
Download the Docker Cheatsheets
You can grab the cheatsheets individually:
Or you can grab them all at once, with the cheatsheet collection