Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

2 - The Dockerfile - building an image

 
Our end goal is to make a container from which we can run our own code. However, to achieve this, we need to create something called aimage first. An image is a prototype of a container; it serves as a premade snapshot that can be used to spawn any number of containers. An image is created from something called a Dockerfile, which in its most basic form is just a list of prerequisites you want installed and commands you want to run before every startup. The example below should be a nice starting point.

...