Here, we will be building our own container images. For doing this, we have two different ways, namely manual method and automated method. Let us see both ways.

Exercise 1 Building Container Manually

Exercise 2 Creation of Dockerfile in container host Automated method of container creation

Now we shall create the Dockerfile in the container host that can be used to create containers in an automated fashion. This will work with a few sets of commands that will be saved in a file in the directory of container host.