
When writing a Dockerfile or docker-compose.yml you often need to rely on the ENVIRONMENT variable and there could be many reasons behind it, for example - If your container is using Python then you might wanna rely on the Python version which is set into the host machine's environment variable. another use case could …
Read More
The Docker failed to compute cache key error is result of docker buildcommand which is executed on a directory where the Dockefile is not present. I had this issue when I was working with one of my project on my windows laptop and my directory structure looked like this - 1\parent-directory 2- test-file-1.py 3- …
Read More
This blog post will address how to fix the docker issue EADDRINUSE (PORT or ADDRESS already in use). Here is a little error snapshot which I have taken from my docker container which I was aiming to run on port 1313 but unfortunately the port is already occupied by some other process. 1docker: Error response from …
Read More
You might have encountered the error executable file not found in $PATH when you are trying to run your docker container. There could be many reasons for an error like this. But in simple words, the docker can not find the binary which you want to run inside the docker container. Let's take some examples to identify …
Read More
As DevOps, we often make quite a lot of mistakes and one of the most oversight mistakes we generally do is forget to expose a port for the container. When you realize that you have not exposed any port for the container then you start looking for ways to change the port mapping of a live container or in other words, we …
Read More
When we package any application using Docker then either we create Dockerfile or docker-compose.yaml, even you can create both the files and share the files with others. There is one important aspect in both the files .i.e. PORT. Any container which you build and ship to other developers has to have one or more defined …
Read More
I am a real big fan of working with docker because it provides you a certain level of isolation and the ability to move your dockerize application anywhere from development to the production environment. But often when I work with the multiple numbers of running docker containers then it is often needed to restart a …
Read More
While working on my Spring Boot Microservices with Docker I felt a need to edit some of the files present under my docker container. But when I tried to edit the file nano application.yaml it throws me an error bash: nano: command not found. So I was not able to edit the file which is present inside my running docker …
Read More
In this blog post, we will look at the different ways to fix the Error starting docker service Unit not found. I faced this issue while I was trying to set up Kubernetes cluster on CentOS 8. As Kubernetes is a container orchestration tool and it is used for managing container images, so I had to install Docker before …
Read More
There are times in a project where you have been working for quite a long time and you create and tag docker images on daily basis but after some time it is generally observed that we tend to forget how many docker images we have build and tagged. I do not see a problem in building and tagging a new docker image number …
Read More