docker-expert

docker-expert is an agent for Claude Code from piomin/claude-ai-spring-boot. It costs 27 tokens per session (725 once invoked), scanned A, original, Apache-2.0.

A specialist for Docker, a tool that packages applications into portable containers, and for running those containers together in production.

In plain words
What is it for?
Use it to review or create Dockerfiles and Docker Compose configurations, improve builds with multi-stage images and caching, and harden container deployments.
Why use it?
It helps turn Docker setup into a repeatable production process while addressing image size, build speed, security, and deployment concerns.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the spring-boot-template plugin — 8 skills, 6 agents shipped together

Good fit Use it to review or create Dockerfiles and Docker Compose configurations, improve builds with multi-stage images and caching, and harden container deployments.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/piomin/claude-ai-spring-boot/docker-expert
About the project

piomin/claude-ai-spring-boot is a starter template for creating Spring Boot applications with Claude Code. Developers clone it as a structured foundation when using Claude Code to generate Spring Boot projects.

piomin/claude-ai-spring-boot · 1,420 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/piomin/claude-ai-spring-boot

Made for: Claude Code.

Or install spring-boot-template, the plugin that ships this one along with the rest of its 8 skills, 6 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docker-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/piomin/claude-ai-spring-boot/docker-expert/github.svg)](https://agentmods.dev/agents/piomin/claude-ai-spring-boot/docker-expert)
Your own site
<a href="https://agentmods.dev/agents/piomin/claude-ai-spring-boot/docker-expert"><img src="https://agentmods.dev/badge/agents/piomin/claude-ai-spring-boot/docker-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docker-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/piomin/claude-ai-spring-boot/docker-expert"><img src="https://agentmods.dev/badge/agents/piomin/claude-ai-spring-boot/docker-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 725 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00725
Opus 5.5 $0.00011 $0.00290
Sonnet 5.5 $0.00005 $0.00145
Haiku 4.5 $0.00003 $0.00072

Measured 4d ago against content hash 3437e3933769, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docker-expert scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

RUN addgroup -S app && adduser -S app -G app && apk add --no-cache curl
agents/docker-expert.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Docker containerization specialist for Spring Boot / Java applications.

Dockerfile Pattern for Spring Boot

FROM eclipse-temurin:21-jdk-alpine AS build
WORKDIR /workspace/app
COPY mvnw .
COPY .mvn .mvn
COPY pom.xml .
RUN ./mvnw dependency:go-offline -B
COPY src src
RUN ./mvnw package -DskipTests

FROM eclipse-temurin:21-jre-alpine
RUN addgroup -S app && adduser -S app -G app && apk add --no-cache curl
WORKDIR /app
COPY --from=build /workspace/app/target/*.jar app.jar
USER app
HEALTHCHECK --interval=30s --timeout=3s CMD curl -sf http://localhost:8080/actuator/health || exit 1
ENTRYPOINT ["java", "-jar", "app.jar"]

Optimization Checklist

  • Multi-stage build: separate build and runtime stages
  • Layer ordering: dependencies before source code (cache Maven downloads)
  • Alpine or distroless base images for minimal size
  • Non-root USER in runtime stage
  • HEALTHCHECK instruction pointing to Actuator health endpoint
  • .dockerignore: .git, target/, .idea/, *.iml, *.md, .claude/

Docker Compose for Development

  • Spring Boot app with depends_on and health check conditions
  • Database (PostgreSQL/MySQL) with health check: pg_isready / mysqladmin ping
  • Named volumes for database persistence
  • Environment variables for Spring datasource, JPA settings
  • Port mapping for debugging (5005 for remote debug)

Spring Boot Maven plugin builds OCI images using Paketo Buildpacks - no Dockerfile needed.

# Build image
./mvnw spring-boot:build-image \
  -Dspring-boot.build-image.imageName=myapp:1.0.0

# Build native image
./mvnw -Pnative spring-boot:build-image \
  -Dspring-boot.build-image.imageName=myapp:1.0.0-native
<!-- pom.xml configuration -->
<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <configuration>
        <image>
            <name>${project.artifactId}:${project.version}</name>
            <env>
                <BP_JVM_VERSION>21</BP_JVM_VERSION>
                <BPE_JAVA_TOOL_OPTIONS>-XX:MaxRAMPercentage=75.0</BPE_JAVA_TOOL_OPTIONS>
            </env>
        </image>
    </configuration>
</plugin>

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · -193 lines 3437e3933769
  2. 1mo ago First seen · 279 lines · 27 tokens per session scan A 42aacc5f7e9c

Subscribe to this mod's changes

docker-expert is an agent published in the GitHub repository piomin/claude-ai-spring-boot (1,420 stars, last pushed 3d ago), licensed Apache-2.0. It adds 27 tokens to every session and 725 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.