docker

Run and troubleshoot Docker containers, images, and networks via CLI patterns for automated workflows.

3|1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill docker-cogni-ai-ou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker
Source: https://github.com/Cogni-AI-OU/cogni-ai-agent-skills/tree/main/docker
Command: npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill docker-cogni-ai-ou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you execute and manage Docker containers and networks safely from the command line without getting stuck on interactive sessions or leaving orphaned resources behind.

Core Features & Use Cases

  • Non-interactive CLI operations: Run containers and commands safely for automated agent workflows by avoiding -it and interactive pseudo-TTY usage.
  • Reliable lifecycle management: Use --rm for ephemeral runs, inspect state/details via structured JSON formatting, and prune unused images/volumes to prevent buildup.
  • Diagnostics and network troubleshooting: Debug failed container starts with logs, resolve permission issues (including SELinux labeling), and verify inter-container connectivity via user-defined network inspection.

Quick Start

Use the docker skill to run an ephemeral job that mounts the current folder into /work and executes a command inside the specified image.

Frequently Asked Questions about docker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run docker containers non-interactively for automated workflows?

Run docker containers non-interactively by avoiding the `-it` flag and pseudo-TTY allocation, which allows automated agent workflows to execute commands without getting stuck on interactive sessions.

What is the best way to prevent orphaned docker images and volumes from building up?

Prevent orphaned docker resources by using the `--rm` flag for ephemeral container runs and periodically pruning unused images and volumes to keep the environment clean.

How do I troubleshoot inter-container connectivity on a user-defined docker network?

Troubleshoot inter-container connectivity by inspecting the user-defined docker network and querying container state with JSON-formatted docker inspection output to verify configurations.

Why does my docker container fail to start with permission issues?

Docker container permission issues often stem from SELinux labeling or improper host path mounts, which you can diagnose by inspecting container logs and verifying absolute host paths.

Can I execute commands inside a running docker container without opening a shell?

Yes, you can execute commands inside a running docker container using safe CLI patterns that bypass interactive shell sessions, enabling automated command execution and log inspection.