create-container

create-container is a command for Claude Code from enuno/dokploy. It costs 13 tokens per session (1,402 once invoked), scanned A, original, Apache-2.0.

A command that builds a Docker image from a Dockerfile and sends it to a private container registry. A Docker image packages an application and its dependencies for running in a container.

In plain words
What is it for?
Use it to build and publish images from a local or online Dockerfile to registry.hashgrid.net.
Why use it?
It handles image naming, checks whether you are logged in, and gives instructions when registry authentication is missing.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to build and publish images from a local or online Dockerfile to registry.hashgrid.net.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/enuno/dokploy/create-container
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/enuno/dokploy

Made for: Claude Code.

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 create-container

README.md
[![agentmods](https://agentmods.dev/badge/commands/enuno/dokploy/create-container/github.svg)](https://agentmods.dev/commands/enuno/dokploy/create-container)
Your own site
<a href="https://agentmods.dev/commands/enuno/dokploy/create-container"><img src="https://agentmods.dev/badge/commands/enuno/dokploy/create-container/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 create-container

Your own site · 80×15
<a href="https://agentmods.dev/commands/enuno/dokploy/create-container"><img src="https://agentmods.dev/badge/commands/enuno/dokploy/create-container.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,402 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.00013 $0.01402
Opus 5.5 $0.00005 $0.00561
Sonnet 5.5 $0.00003 $0.00280
Haiku 4.5 $0.00001 $0.00140

Measured 1mo ago against content hash f493e01a2443, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-container 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 1mo 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.

allowed-tools: Read, Write, Bash(docker:*, curl:*, wget:*, git:*)
.claude/commands/create-container.md · 202 lines

How it starts

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

Build a Docker image from a Dockerfile (local or URL) and push it to the private registry at registry.hashgrid.net.

Step 1: Parse Arguments

Extract the Dockerfile path from the first argument. Check if a custom image tag was provided as the second argument.

Step 2: Validate Dockerfile Source

Determine if the Dockerfile path is:

  • Local file: Check if it exists using the Read tool
  • URL: Must start with http:// or https://

If URL, download it to a temporary location:

!curl -fsSL <dockerfile-url> -o /tmp/Dockerfile.tmp

Step 3: Generate Image Tag

If no custom tag provided, auto-generate one:

  1. Get current directory name: !basename $(pwd)
  2. Try to get git commit hash: !git rev-parse --short HEAD 2>/dev/null || echo "latest"
  3. Format: <directory-name>:<git-hash> or <directory-name>:latest

If custom tag provided, use it directly.

Step 4: Check Registry Authentication

Verify login to registry.hashgrid.net:

!docker login registry.hashgrid.net --password-stdin < /dev/null 2>&1

If not authenticated, instruct user:

⚠️  Not logged into registry.hashgrid.net
Please run: docker login registry.hashgrid.net

Then stop execution.

Step 5: Build Docker Image

Build the image from the Dockerfile:

If local Dockerfile:

!docker build -f <dockerfile-path> -t <image-tag> <build-context-dir>

If downloaded from URL:

!docker build -f /tmp/Dockerfile.tmp -t <image-tag> .

The build context directory is the directory containing the Dockerfile (or current directory for URLs).

Show the build output to the user.

Step 6: Tag for Registry

Tag the image with the registry prefix:

!docker tag <image-tag> registry.hashgrid.net/<image-tag>

Step 7: Push to Registry

Push the tagged image:

!docker push registry.hashgrid.net/<image-tag>

Show push progress to the user.

Step 8: Cleanup and Report

If Dockerfile was downloaded from URL, remove it:

!rm -f /tmp/Dockerfile.tmp

Read the full file on GitHub · 202 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. 1mo ago First seen · 202 lines · 13 tokens per session scan A f493e01a2443

Subscribe to this mod's changes

create-container is a command published in the GitHub repository enuno/dokploy (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 13 tokens to every session and 1,402 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-31.