Docker & containerization

Docker and containerization services for new and legacy applications. Containerizing new and legacy applications with Docker: multi-stage builds, minimal and distroless images, private registries, Docker Compose for local development, and replacing Bitnami images that stopped receiving updates.

A free first call with an engineer. You leave with a scoped next step.

Kubernetes & DevOps Assessment
Usually 2-4 weeks
Implementation Project
Scoped to your roadmap
Managed DevOps & Support
Monthly

What we deliver. Built as code, handed over with runbooks.

Containers package an application with everything it needs to run, so it behaves the same on a laptop, in CI and in production. Done well, images are small, patched, reproducible and quick to build. Done badly, they are large, run as root, carry hundreds of vulnerable packages and depend on base images that stopped receiving updates. Gepton containerizes new and legacy applications, rebuilds existing Dockerfiles to production standards, sets up registries and local development with Docker Compose, and replaces images from sources such as the 2025 Bitnami catalog that are no longer maintained.

Technologies

  • Docker
  • BuildKit
  • Docker Compose
  • Podman
  • Distroless
  • Docker Hardened Images
  • Chainguard Images
  • Harbor
  • Amazon ECR
  • Azure Container Registry
  • Artifact Registry
  • Trivy
  • Renovate
  • Buildpacks
  • Containerization assessment of your applications, with an order of work and approach per application
  • Production Dockerfiles with multi-stage builds, non-root users, pinned bases and health checks
  • Minimal or distroless base image strategy with an approved base image list
  • Replacement plan and migration for Bitnami and other unmaintained images and Helm charts
  • Private registry setup (Amazon ECR, Azure Container Registry, Artifact Registry or Harbor) with retention rules
  • Image build pipeline with caching, multi-architecture builds, scanning and tagging conventions
  • Docker Compose environment so developers run the full stack locally with one command
  • Configuration moved to environment variables and mounted secrets, following twelve-factor practice
  • Automated base image updates with Renovate or Dependabot and scheduled rebuilds
  • Documentation and a container standards guide for your developers

What gets in the way. The problems teams bring to us.

Use cases. Where clients put Docker & containerization to work.

  • Containerizing a legacy Java or .NET application

    A monolith running on a hand-built VM is containerized with its runtime and configuration externalized, so it can run in any environment and move to Kubernetes later.

  • Shrinking a Node.js or Python image

    A multi-stage build separates build tools from the runtime and moves to a slim or distroless base, cutting image size and scanner findings substantially.

  • Replacing Bitnami PostgreSQL, Redis or Kafka images

    A team moves from Bitnami images to official upstream images, Docker Hardened Images or operator-managed services, and updates Helm values to match.

  • One-command local development

    Docker Compose starts the application, database, cache and queue with seed data, so a new developer is productive on day one.

  • Multi-architecture images for ARM

    Images are built for both amd64 and arm64 so workloads can run on AWS Graviton or Apple Silicon laptops without separate pipelines.

  • Private registry with retention and scanning

    A company consolidates images from Docker Hub and several registries into one private registry with access control, scanning and cleanup of old tags.

  • Preparing workloads for Kubernetes

    Applications are made stateless where possible, expose health endpoints and handle shutdown signals properly, so they behave well once orchestrated.

How an engagement runs. A fixed-scope plan before anything is built.

How we work
  1. 1

    Inventory applications

    We list applications, runtimes, OS dependencies, state, file system use, ports and external services, and rank them by ease and value of containerization.

  2. 2

    Define container standards

    We agree base images, Dockerfile conventions, tagging, registry layout, configuration and secrets handling, and what 'production-ready' means for an image.

  3. 3

    Containerize and test

    Applications are containerized in order, tested against existing behavior, and measured for size, build time and vulnerabilities before and after.

  4. 4

    Automate builds and updates

    Image builds, scans and pushes run in CI, with base image updates proposed automatically and rebuilt on a schedule.

  5. 5

    Hand over standards

    We document the standards, walk developers through the Dockerfiles and Compose setup, and leave templates for new services.

Who it is for. And how we work with you.

A good fit if you are

  • Teams running applications on hand-configured servers that are hard to reproduce or move
  • Companies with large, slow or vulnerability-heavy container images
  • Anyone whose Dockerfiles or Helm charts still reference Bitnami images or bitnamilegacy tags
  • Engineering managers who want new developers productive on their first day
  • Organizations preparing to move workloads to Kubernetes or a managed container service

How we work

Behavior first, then size
We verify a containerized application behaves exactly like the original before optimizing it. Smaller images that break edge cases are not an improvement.
Standards your developers can follow
A short standards guide and templates mean new services start right, instead of each developer inventing a new Dockerfile.
Maintained sources only
We choose base images with a clear maintainer and update policy, and automate rebuilds, so images do not quietly go stale again.

A closer look at Docker & containerization

What a production-ready image looks like

  • Multi-stage build. Compile and install dependencies in a builder stage; copy only the output into a small runtime stage. Compilers, package managers and source code stay out of the final image.
  • Minimal base. Use slim, Alpine, distroless or hardened images. Fewer packages mean fewer vulnerabilities, faster pulls and less to patch.
  • Non-root user. Run as a dedicated user with a read-only root file system where possible.
  • Pinned and reproducible. Pin base images by version or digest and use lock files, so the same commit produces the same image.
  • Cache-friendly order. Copy dependency manifests and install before copying source, so code changes do not reinstall everything. BuildKit cache mounts help further.
  • No secrets or environment config inside. Configuration comes from environment variables or mounted files; build-time secrets use BuildKit secret mounts, never plain build arguments.
  • Well-behaved process. Handle SIGTERM for graceful shutdown, log to standard output and expose a health endpoint.

Choosing base images

Official images on Docker Hub (for example postgres, python, node) are maintained by upstream or Docker and are a solid default. Distroless images from Google contain only the runtime, with no shell or package manager, which reduces attack surface but makes debugging harder; ephemeral debug containers in Kubernetes solve most of that. Hardened images go further with minimal packages, SBOMs and signatures: Docker made its Docker Hardened Images catalog free and open source under Apache 2.0 in December 2025, with faster patch commitments reserved for its commercial tier, and Chainguard offers a similar approach. Alpine is small but uses musl libc, which occasionally causes compatibility or performance differences for some language runtimes.

The Bitnami change and how to respond

According to Bitnami's announcement, from 28 August 2025 the versioned images were moved from docker.io/bitnami to a docker.io/bitnamilegacy repository that receives no further updates, and only a limited set of free, latest-tag images intended for development remained, with a paid Bitnami Secure Images offering for the rest. Charts and Dockerfiles that referenced pinned Bitnami tags broke or silently stopped getting fixes. Switching to bitnamilegacy only buys time. Durable options are:

  1. Official upstream images, with your own chart or an upstream-maintained chart.
  2. Hardened image catalogs such as Docker Hardened Images, or a paid subscription if the Bitnami packaging suits you.
  3. Kubernetes operators for stateful services, for example CloudNativePG for PostgreSQL or Strimzi for Kafka.
  4. Managed cloud services (RDS, Azure Database, Memorystore) where running the service yourself adds no value.

Image names and default paths, users and environment variables differ between Bitnami and upstream images, so data volumes and configuration must be mapped carefully and migrations rehearsed.

Containerizing legacy applications

Most legacy applications can be containerized without rewriting them. The work is in discovering implicit dependencies: OS packages, fonts, cron jobs, local file storage, hard-coded hostnames and license files. Local files usually move to object storage or a persistent volume, cron jobs become scheduled jobs, and configuration is externalized. Some workloads are poor candidates, such as applications tied to Windows GUI components or kernel drivers; those may stay on VMs or run under KubeVirt.

Docker Compose for development

Compose describes the application and its dependencies in one file so developers start everything with a single command. Profiles let people start only what they need, and a seed script provides realistic data. Compose is for development and simple single-host deployments; production orchestration across several machines belongs to Kubernetes or a managed container service.

Common mistakes

  • Using the latest tag in production, so rebuilds change behavior without warning.
  • One large image for build and runtime.
  • Running the application as root because it was the default.
  • Building different images per environment instead of promoting one.

Running containers at scale is covered in Kubernetes Consulting & Management; image signing and scanning policy in DevSecOps & Supply-Chain Security.

Engagement models. Each one scoped and quoted after a first call.

How engagements work

Usually 2-4 weeks

Kubernetes & DevOps Assessment

A review of your repositories, pipelines, clusters, cloud accounts, security, monitoring and costs. You get findings ranked by risk and effort and a phased roadmap you can act on with us or on your own.

Scoped to your roadmap

Implementation Project

Our engineers build the agreed pieces: pipelines, GitOps, clusters, infrastructure as code, observability or a migration. Everything is delivered as code with runbooks and a handover to your team.

Monthly

Managed DevOps & Support

Ongoing care for your cloud and Kubernetes: monitoring and on-call, patching and upgrades, backups and recovery tests, cost reviews and a monthly report, with least-privilege, audited access.

No prices are published: you approve a written scope and quote before we build.

Docker & containerization in depth

Language-specific details that trip teams up

General Dockerfile rules apply everywhere, but each runtime has its own habits that cause problems in containers. These are the ones we check first when containerizing or reviewing an application.

RuntimeCommon issueWhat we do
Java (JVM)Heap sized for the host rather than the container, or a fixed heap that ignores limitsUse a current JDK, which reads container limits, and size the heap with MaxRAMPercentage; consider jlink runtimes or Jib for smaller images
Node.jsStarted through npm start, so shutdown signals do not reach the app; dev dependencies shippedRun node directly, install with npm ci and omit dev dependencies in the runtime stage
PythonLarge images from build tools, slow builds compiling native packages, musl issues on AlpineBuild wheels in a builder stage, use a slim glibc base by default, pin with a lock file
GoMissing CA certificates or time zone data in minimal imagesStatic binary with CGO_ENABLED=0 on a distroless static base that includes certificates
.NETFull SDK image shipped to productionSeparate SDK build stage and runtime stage; Microsoft publishes slim and chiseled runtime images
PHPWeb server and PHP-FPM in one container with an ad hoc supervisorSeparate containers or a well-maintained combined image, with OPcache settings tuned for production

Process behavior: signals, PID 1 and shutdown

Many container bugs only appear during deployments, when Kubernetes stops old pods. The container's main process runs as PID 1, which does not get default signal handling. If the Dockerfile uses the shell form of CMD, a shell becomes PID 1 and may not pass SIGTERM to the application, which is then killed abruptly after the grace period, dropping in-flight requests.

  • Use the exec form, for example CMD ["node", "server.js"], so the application receives signals directly.
  • Add a minimal init such as tini when the application spawns child processes, so zombies are reaped.
  • Handle SIGTERM in the application: stop accepting new work, finish in-flight requests, close connections, then exit.
  • In Kubernetes, a short preStop delay gives load balancers time to stop sending traffic before shutdown starts, and terminationGracePeriodSeconds should exceed the application's drain time.
  • Remember that Kubernetes ignores the Dockerfile HEALTHCHECK; readiness and liveness probes do that job there.

Building images in CI

Local builds hide problems that CI exposes: cold caches, different architectures, no access to private registries. Our CI image builds use BuildKit through docker buildx with a registry-backed cache, so ephemeral runners still reuse layers. Multi-architecture images for amd64 and arm64 are built either with emulation or, faster, with native runners for each architecture combined into one manifest list.

BuildKit can attach an SBOM and SLSA provenance attestation to each image at build time. Combined with signing, this lets a cluster verify where an image came from before running it. Tags are informative, but deployments reference images by digest so the exact bytes that were tested are the ones that run.

Keeping images patched after they ship

An image that was clean on build day collects vulnerabilities as new advisories appear. Patching needs a routine, not a heroic effort before each audit:

  1. Pin base images by digest and let Renovate or Dependabot open pull requests when a new digest is published.
  2. Rebuild on a schedule, even without code changes, so OS package fixes reach production.
  3. Rescan stored images in the registry against new advisories, and alert on images still running in clusters.
  4. Patch in place when a rebuild is hard: tools such as Copacetic can apply OS package updates to an existing image, a useful bridge for legacy builds.
  5. Retire old images with registry lifecycle rules, keeping only versions you still support.

Registry design

The registry is production infrastructure. Decisions we make explicitly: immutable tags for release images, so a tag cannot be overwritten; retention and lifecycle policies so storage does not grow forever; pull-through caches or mirrors for Docker Hub and other public registries, which protect you from upstream rate limits and outages; replication to the regions where clusters run; and scanning plus signature storage alongside the images. For air-gapped or on-premises sites, Harbor provides replication, scanning and access control in one self-hosted product. Access follows least privilege as well: CI identities can push only to their own repositories, clusters can only pull, and nobody pushes release images by hand from a laptop. Registry audit logs record who pushed what and when, which is often the first place to look when an unexpected image appears in a cluster.

Development environments that match production

Containers help most when development, CI and production share the same definitions. Docker Compose describes the local stack; Compose Watch syncs code changes into running containers without full rebuilds. The Dev Container specification, supported by VS Code and other editors, defines a complete development environment in the repository, so a new engineer opens the project and gets the right toolchain without a setup document. The production image remains the source of truth: development images extend it rather than duplicating it.

Once images are solid, the next steps are usually Kubernetes or a simpler managed container service, with supply-chain controls for signing and admission. Our migration kits package common containerization patterns.

Questions about Docker & containerization

Something else? Send us your question and an engineer replies with next steps.

Can every application be containerized?

Most web applications, APIs, workers and batch jobs can, including older Java, .NET, PHP and Python applications. Harder cases are applications tied to specific hardware, kernel modules, Windows GUI components or licenses bound to a machine. The assessment identifies these early and suggests alternatives such as keeping them on VMs.

Do we need Kubernetes after containerizing?

No. Containers run well on simpler platforms such as Amazon ECS, Azure Container Apps, Google Cloud Run or a single host with Docker Compose. Kubernetes makes sense when you have many services, need fine-grained scaling, or want a common platform across clouds. We recommend the simplest platform that meets your needs.

What should we do about our Bitnami images?

First inventory every reference to Bitnami images and charts, including bitnamilegacy. Then choose per component: official upstream images, a hardened image catalog, an operator for stateful services, or a managed cloud service. We map configuration and data paths, test the change in non-production and migrate with a rollback plan.

Are distroless images hard to debug?

They have no shell, so you cannot exec into them in the usual way. In Kubernetes, ephemeral debug containers attach a toolbox to a running pod when needed. For local work, a debug variant of the image can be used. For most teams the security benefit outweighs the adjustment.

Which container registry should we use?

Usually your cloud provider's registry (ECR, ACR or Artifact Registry), since it integrates with IAM and scanning. Harbor suits on-premises, multi-cloud or air-gapped environments. We set up access control, immutable tags for releases, retention rules and replication where needed.

How long does containerization take?

A typical modern service takes a few days including tests and pipeline. A legacy application with hidden dependencies can take one to three weeks. A portfolio is planned in waves after a one to two week assessment.

Do you support Podman or other runtimes?

Yes. The images we build follow OCI standards and run on Docker, Podman, containerd and CRI-O. Developers can use Docker Desktop, Podman Desktop or Rancher Desktop depending on your licensing and preferences.

What access do you need?

Access to the application repositories, a non-production environment to test against, and permission to push to a registry. For legacy applications, read access to the current servers helps us discover dependencies accurately.

Will our developers be able to maintain the Dockerfiles?

Yes. Dockerfiles are kept simple and commented, follow a short standards guide, and base image updates arrive as automated pull requests. We walk developers through them before handover.

Why do our containers drop requests during deployments?

Usually because shutdown is not handled. If a shell runs as PID 1, SIGTERM may never reach the application, which is killed after the grace period. Use the exec form of CMD, handle SIGTERM by draining in-flight requests, add a short preStop delay so load balancers stop routing first, and set the termination grace period longer than the drain time.

Should we build multi-architecture images for ARM?

If you run or plan to run ARM instances such as AWS Graviton, Azure Cobalt or Google Axion nodes, or developers use Apple silicon, yes. Buildx can produce one manifest covering amd64 and arm64. Native ARM runners build faster than emulation. Test on both architectures, because some native dependencies or older base images do not support ARM cleanly.

How do we keep images patched without constant manual work?

Automate it. Pin base images by digest and let Renovate or Dependabot propose updates, rebuild images on a schedule even without code changes, rescan stored images against new advisories, and alert on vulnerable images still running. For hard-to-rebuild legacy images, tools such as Copacetic can patch OS packages in place as a temporary measure.

Do we need a self-hosted registry like Harbor?

Not usually. Managed registries such as Amazon ECR, Azure Container Registry and Google Artifact Registry suit most cloud workloads and integrate with cloud identity. Harbor makes sense for on-premises or air-gapped sites, multi-cloud estates that want one registry, or teams that need replication and policy features under their own control. Either way, add a pull-through cache for public images.

Related services. More from Cloud & DevOps.

See Cloud & DevOps

Jump to

↑↓ to move↵ to open