agentleFS
sentineldesksentineldesk/agent/skills/containers/SKILL.md

containers

Skill0 starsChanged 3 months agoApache-2.0View on GitHub

Run and troubleshoot Docker, Docker Compose and Podman on this desktop — build, run, inspect, read logs, exec into a container, clean up, and harden. Use when the task mentions containers, images, compose, a Dockerfile, or a service that runs in one.

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use observability.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the daemon is not running, that is service_control docker status and not a docker problem.

    line 19

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Check what is actually installed first

docker and podman take nearly the same arguments and are not the same thing. run_command "docker version" — if it is absent, run_command "podman version", because a machine with Podman answers docker commands only when the alias package is installed. Do not assume; one list_commands or version call saves a turn of confusing errors.

If the daemon is not running, that is service_control docker status and not a docker problem.

Anything that pulls or builds is a job

An image pull and a build are minutes, not seconds:

job_start   docker build -t myapp:dev .
job_wait

A wait that times out has not cancelled the build — call job_wait again. Starting a second build because the first "timed out" gives you two builds competing for the same layer cache, which is slower than either alone.

Reading a container that is misbehaving

In this order, because each answers a different question:

  • run_command "docker ps -a" — is it running, or did it exit? An exit code of 0 means it finished; 137 means it was killed (usually OOM); 125/126/127 mean Docker could not run the command at all.
  • run_command "docker logs --tail 100 <name>" — what it said. The tail, not the head: the reason it died is at the end.
  • run_command "docker inspect <name>" — large, and worth spilling. Read the bits you need with a format string instead: docker inspect -f '{{.State.Health.Status}}' <name>.
  • run_command "docker stats --no-stream" — memory against its limit. A container restarting in a loop is usually hitting one.

--no-stream and --tail are not optional. docker stats and docker logs -f never return, so without them you have started something that must be a job and is not one.

Exec is a terminal, not a command

docker exec -it wants a TTY nothing here provides. Use -i alone, or better, docker exec <name> <cmd> with no flags for a one-shot. For a genuinely interactive session, open a shell (shell_open) and drive it — that is what the shell tools are for.

Compose

docker compose (space) on anything current; docker-compose (hyphen) is the old standalone binary and may not be there. run_command "docker compose config" validates and prints the resolved file — do that before up when a variable is involved, because Compose substitutes silently and an empty variable becomes an empty string rather than an error.

docker compose up -d, then check: up returning 0 means the containers were created, not that the app works.

Cleaning up, carefully

docker system prune is destructive in the way that matters — -a removes images nothing is running right now, including the one somebody was about to start, and --volumes removes data. Show what would go first (docker system df), say what you are about to remove, and ask. This is the command that turns "the disk was full" into "the database is empty".

Hardening, when asked

The short list that matters: do not run as root inside the container (USER in the Dockerfile), do not mount the Docker socket into a container you do not fully trust — that is root on the host — drop capabilities you do not need, pin image tags rather than :latest so a rebuild is reproducible, and keep secrets out of the image (they persist in layers even if a later layer deletes them).

A credential in a build argument or an ENV is baked into the image. That is the container version of the rule in your system prompt: it does not belong in an argument.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.