Docker images explained
Introduction When it comes to Docker, it’s difficult to talk about one concept without involving some part of another Docker concept. You are likely to notice this correlation in this post as well where we will talk about Docker images. Here we will talk a bit about what a Dockerfile is and mainly focus on creating Docker images and also understand what is a Docker base image. What is a Docker image? A docker image is what forms the blueprint of our desired application which forms the basis of the containers that we intend to run. An image is a combination of a file system and parameters that are needed to support and run a container. To explain how we use images in a real-world environment we will use a sample scenario that is explained next. Scenario Let’s consider a scenario wherein we are working for an organization called Linuxnix and we hire some developers to write Python code for us. In production, we happen to use Ubuntu 16.04 and so the requirement is that the code should work in Ubuntu. Now what we will download an image of Ubuntu 16.04 from the Ubuntu repository on Docker hub and use that as our base image. We want to make sure that we are working with the most secure and updated version of the OS so we will...
Read More