Managing Docker images – Creating and Managing Container Images-2
Images comprise multiple layers, and most of the time, there is a relationship between various versions of containers that run…
Images comprise multiple layers, and most of the time, there is a relationship between various versions of containers that run…
In modern DevOps practices, Docker images are primarily built either on a developer machine or a CI/CD pipeline. The images…
Let’s modify the Dockerfile according to the multi-stage build process and see what we get. The respective files for this…
Let’s containerize a simple Go application that prints Hello, World! on the screen. While I am using Golang in this…
We built some Docker images in the previous section, so by now, you should know how to write Dockerfiles and…
While EXPOSE and STOPSIGNAL are self-explanatory, let’s look at the HEALTHCHECK directive. The HEALTHCHECK directive runs a command (hence CMD)…
When we build this file, we expect the index.html file to be copied to the /var/www/html directory within the container…
Building a container image is very simple. It is actually a one-line command: docker build -t <image-name>:version <build_context>. While we…
Instead of CMD, you can use ENTRYPOINT. While they serve a similar purpose, they are two very different directives. Every…