_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

Docker Hub and private registries — managing container images

25. 03. 2015 1 min read CORE SYSTEMSdevelopment
Docker Hub and private registries — managing container images

As Docker projects multiplied, so did the number of images. Docker Hub for public ones is fine, but company code? Private Docker Registry 2.0 addresses security but adds operational overhead.

Image tagging strategy

  • myapp:1.2.3 — semantic versioning, immutable
  • myapp:develop-abc123 — dev build with git SHA
  • NEVER :latest in production — a moving target

Multi-stage builds

FROM maven:3.3-jdk-8 AS build
COPY pom.xml .
COPY src src
RUN mvn package -DskipTests

FROM tomcat:8-jre8
COPY --from=build target/myapp.war /usr/local/tomcat/webapps/

200 MB instead of 1.2 GB. Smaller image = faster deploy.

Operations and security

Garbage collection as a cron job. Security scanning via Clair from CoreOS. CI/CD automatically builds, tags, and pushes images.

A registry is infrastructure

If you use Docker as a team, a private registry is a necessity.

dockerregistrydocker hubci/cd
Share:

CORE SYSTEMS

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.

Need help with implementation?

Our experts can help with design, implementation, and operations. From architecture to production.

Contact us