Jhooq
open-menu closeme
Home
Ansible
Kubernetes
Terraform
Google Cloud
YouTube
Tools
About
Contact
github twitter linkedin rss
  • Docker environment variables - ENV vs ARG, -e and --env-file, Compose environment and .env, precedence, PATH, and why you cannot change a running container's variables (tested on Docker 28)

    calendar Jan 7, 2022 · 10 min read  ·
    Last Modified : Oct 17, 2026
    Share on: twitter facebook linkedin copy
    Docker environment variables - ENV vs ARG, -e and --env-file, Compose environment and .env, precedence, PATH, and why you cannot change a running container's variables (tested on Docker 28)

    TL;DR Dockerfile: ENV sets a variable for the build and the container; ARG exists only during the build and is gone at run time. export inside a RUN line dies with that line. Run time: docker run -e KEY=value and --env-file app.env. Flags override ENV from the image, and -e KEY with no value copies the variable from …


    Read More
  • docker failed to compute cache key: failed to calculate checksum of ref - not found (the 6 causes, tested on Docker 28)

    calendar Dec 20, 2021 · 9 min read  ·
    Last Modified : Oct 17, 2026
    Share on: twitter facebook linkedin copy
    docker failed to compute cache key: failed to calculate checksum of ref - not found (the 6 causes, tested on Docker 28)

    TL;DR "failed to compute cache key ... not found" is COPY telling you the source path is not in the build context. It happens before any layer is built, which is why --no-cache changes nothing. The context is the last argument of docker build, not the folder with the Dockerfile. cd docker && docker …


    Read More
  • Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint - Bind for 0.0.0.0:8080 failed: port is already allocated (Fix in One Minute)

    calendar Dec 9, 2021 · 11 min read  ·
    Last Modified : Oct 17, 2026
    Share on: twitter facebook linkedin copy
    Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint - Bind for 0.0.0.0:8080 failed: port is already allocated (Fix in One Minute)

    TL;DR Meaning: the host port in your -p HOST:CONTAINER is already in use. Docker could not bind it, so the container was created but never started (docker ps -a shows it as Created). Two wordings, same cause. Bind for 0.0.0.0:8080 failed: port is already allocated means another container publishes that port. failed to …


    Read More
  • exec - executable file not found in $PATH (or %PATH%) in Docker - every cause and fix, inside the container and on the host

    calendar Nov 25, 2021 · 13 min read  ·
    Last Modified : Oct 17, 2026
    Share on: twitter facebook linkedin copy
    exec - executable file not found in $PATH (or %PATH%) in Docker - every cause and fix, inside the container and on the host

    TL;DR Read the line before the error. OCI runtime create failed ... exec: "bash" is inside the container: the image cannot find that program. error: exec: "docker", "docker-compose" or "docker-credential-desktop" is on your host: a tool cannot find a Docker binary. Inside the …


    Read More
  • How to expose port on live containers?

    calendar Sep 21, 2021 · 6 min read  ·
    Last Modified : Aug 21, 2021
    Share on: twitter facebook linkedin copy
    How to expose port on live containers?

    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, …


    Read More
  • How to expose multiple ports with Docker?

    calendar Sep 16, 2021 · 7 min read  ·
    Last Modified : Aug 11, 2021
    Share on: twitter facebook linkedin copy
    How to expose multiple ports with Docker?

    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 …


    Read More
  • docker restart container - Restart One Container (or One Compose Service) Without Touching the Others, with Real Output from Docker 28

    calendar Aug 11, 2021 · 10 min read  ·
    Last Modified : Oct 17, 2026
    Share on: twitter facebook linkedin copy
    docker restart container - Restart One Container (or One Compose Service) Without Touching the Others, with Real Output from Docker 28

    TL;DR One container: docker restart <name-or-id>. Only that container stops and starts again; the others keep running. Reproduced below with nginx, redis and postgres side by side. Grace period: docker restart --timeout 30 <name> waits up to 30 seconds for the process to exit cleanly before killing it. The …


    Read More
  • How to edit file within Docker container or edit a file after I shell into a Docker container?

    calendar Aug 5, 2021 · 6 min read  ·
    Last Modified : Aug 5, 2021
    Share on: twitter facebook linkedin copy
    How to edit file within Docker container or edit a file after I shell into a Docker container?

    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
  • Failed to start docker.service: Unit docker.service not found - the fix on CentOS, Rocky and RHEL 9 (and why dnf install docker makes it worse)

    calendar Jul 24, 2021 · 9 min read  ·
    Last Modified : Oct 15, 2026
    Share on: twitter facebook linkedin copy
    Failed to start docker.service: Unit docker.service not found - the fix on CentOS, Rocky and RHEL 9 (and why dnf install docker makes it worse)

    TL;DR The message is literal. Failed to start docker.service: Unit docker.service not found. means there is no file called docker.service under /usr/lib/systemd/system/. Docker Engine is not installed, however many docker commands you have run. dnf install docker does not install Docker on CentOS, Rocky or RHEL 9. It …


    Read More
  • How to remove old, unused images of Docker?

    calendar Jul 24, 2021 · 6 min read  ·
    Last Modified : Jul 24, 2021
    Share on: twitter facebook linkedin copy
    How to remove old, unused images of Docker?

    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 …


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • »
    • »»

Categories

TERRAFORM 65 AWS 50 KUBERNETES 29 DOCKER 28 ANSIBLE 14 HELM CHART 12 GOOGLE CLOUD 8 DEVOPS 7 BLOGGING 6 SSL 6 GITHUB 5 SPRING BOOT 5 AZURE 4 QUARKUS 4
All Categories

AI1 ANSIBLE14 AWS50 AZURE4 BLOGGING6 DEVOPS7 DOCKER28 GITHUB5 GOOGLE CLOUD8 GRADLE1 HADOOP1 HELM CHART12 HIBERNATE1 JENKINS2 KUBERNETES29 KUBESPRAY3 LINUX COMMANDS1 NGINX2 PROMETHEUS-GRAFANA3 QUARKUS4 SPRING BOOT5 SSL6 TERRAFORM65 VAGRANT3
[A~Z][0~9]

Series

TERRAFORM 63 AWS 39 KUBERNETES 29 DOCKER 28 ANSIBLE 13 HELM CHART 12 GOOGLE CLOUD 8 AZURE 4 DEVOPS 4 JENKINS 2 AI 1 LINUX COMMANDS 1

Tags

KUBERNETES 21 HELM CHART 11 BLOGGING 4 QUARKUS 4 DOCKER 3 GITHUB 3 SSL 3 CAREER 2 KUBESPRAY 2 SPRING BOOT 2 ANSIBLE 1 GIT 1 HADOOP 1 INDEX 1
All Tags

ANSIBLE1 BLOGGING4 CAREER2 DOCKER3 GIT1 GITHUB3 HADOOP1 HELM CHART11 INDEX1 KUBERNETES21 KUBESPRAY2 NGINX1 QUARKUS4 SPRING BOOT2 SSL3 TERRAFORM1
[A~Z][0~9]

Recent Posts

  • Kubernetes IP Address Planning: 22 Problems the Free IP Calculator Solves on EKS, GKE, AKS and On-Premises (kubeadm, Mirantis MKE, RKE2, OpenShift, Tanzu, Talos), with the Numbers and a Screenshot for Each
  • git rebase --exec Explained - Run Your Tests on Every Commit Before You Push, with Real Output, the Failure Path, and the Three Things That Bit Me
  • helm template Explained - Render a Helm Chart Locally Without a Cluster (Helm 4): Values Files, --set, --show-only, --output-dir, and the Traps That Bite
  • Should You Do a Cloud Certification? The Four Reasons I Tell People Not to Collect Them, What the Exams Cost in 2026, and the One Case Where a Certificate Is Worth the Money
  • Three AWS Solutions Architect Associate Questions From My Shorts, Answered Properly - Migrating Web, Batch and Legacy Apps; Cutting EC2 Cost for a 2-Week Shutdown Without Losing Memory; Internet for Private Subnets (with the Prerequisites the 30-Second Answers Skip)
  • What to Learn Before (and Alongside) Cloud - the Six Non-Cloud Skills Every DevOps, SRE and Cloud Engineer Uses Daily: Code and Git, Scripting, CI/CD, Automation, Infrastructure as Code, Networking and Security
  • Google Cloud External HTTP Load Balancer Step by Step - Forwarding Rule, Proxy, URL Map, Backend Service, Health Check and Instance Group in the Console and in Terraform, and Why the First curl Returned 502 (GCP Part 9)
  • Google Cloud IAM Explained - Principals, Roles and Permissions, Owner vs Editor vs Viewer (Now Legacy) vs the New Admin, Writer and Reader Roles, and What an Editor Can Really Do (GCP Part 4)

Rahul Wagh

Jhooq
Its all about Open Source and DevOps, here I talk about Kubernetes, Docker, Java, Spring boot and practices.
Read More


Jhooq

Copyright 2019-  JHOOQ. All Rights Reserved

to-top
Privacy Policy