docker

  • An init process, or PID 1 ignores your signals

    PID 1 in Linux gets no default signal handlers, so a shell script as the entrypoint ignores SIGTERM entirely and docker stop waits ten seconds before killing it.…

  • Moving a pipeline to a runner you do not own

    The CI server was a pet and the pipeline was a shell script nobody could read. A runner that assumes nothing is the point, and the cache is…

  • buildx, and an image for two architectures

    Apple Silicon arrived in November and a team suddenly has two architectures, which means an image built on a laptop may not run on the server. The arm64…

  • A build secret that never reaches a layer

    Passing a private repository token as a build argument writes it into the image history, where docker history reads it back out for anyone who can pull the…

  • Docker secrets are files, not environment variables

    A secret in an environment variable is visible in docker inspect, in the process environment and in any crash dump that prints the environment. The _FILE convention is…

  • Healthchecks with a start period, or a slow boot is an incident

    A database that takes forty seconds to initialise is marked unhealthy during every normal start, which trains everyone to ignore health status. start_period is the flag that makes…

  • Kubernetes is not the answer to this question

    The question was how to deploy four services, and the answer arrived before it. Naming what you actually need — scheduling, health, rolling deploys, secrets.

  • Deploy on push, on a platform you do not control

    The same deployment problem, a second time, on a different platform. A push notification is not authentication, and HTTP has a timeout.

  • docker build –target still builds only what you asked for

    A multi-stage Dockerfile can serve development and production from one file, provided the build is told where to stop. The last form is the one worth remembering, because…

  • The daemon socket is the whole machine

    Mounting /var/run/docker.sock into a container to let it build images is equivalent to giving that container root on the host, and it is presented in most CI documentation…