May 2018
Beginner
96 pages
1h 46m
English
Every Docker image starts from a Dockerfile. To create an image of an application or script, simply create a file called Dockerfile.
It does not have an extension and begins with a capital letter D.
A Dockerfile is a simple text document where all the commands that template a container are written. The Dockerfile always starts with a base image. It contains steps to create the application or to run the script in mind.
Before we build, let's take a quick look at a few best practices on writing Dockerfiles.
Some best practices include, but are not limited to, the following:
Read now
Unlock full access