Container images are built in layers. This allows for shared layers between images and lower actual storage on device.
Images are typically created using dockerfile
In a docker file, each line starts with a command, followed by params.
Some of the most common commands are -
FROM- specify the base imageRUN- run a command inside the containerCOPY- copy files into a containerENV- specify environment variableENTRYPOINT- initial process for the containerCMD- default params for the initial process
docker build can then be used to build the image.
Subscribe to NordLetter
A weekly newsletter on living in Finland.