docker-k8s

Create Dockerfiles, Compose workflows, and Kubernetes manifests for deployments.

1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/enact-on/super-ai-github --skill docker-k8s-enact-on
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-k8s
Source: https://github.com/enact-on/super-ai-github/tree/main/.opencode/skill/docker-k8s
Command: npx skills add https://github.com/enact-on/super-ai-github --skill docker-k8s-enact-on

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides practical containerization and orchestration patterns to accelerate building, testing, and deploying applications with Docker, Docker Compose, and Kubernetes.

Core Features & Use Cases

  • Dockerfile best practices: multi-stage builds, non-root users, smaller base images.
  • Docker Compose for local development: service orchestration, volume management, and environment parity.
  • Kubernetes manifests and Helm chart scaffolds: deployment patterns, scaling, and health checks across environments.
  • Use Case: Containerize a Node.js app with a production-ready Dockerfile, wire it to a compose setup for local testing, and deploy to a Kubernetes cluster using a minimal manifest set.

Quick Start

Start by installing Docker and kubectl, then adapt the example files in this skill to your project. Build and run locally with docker build and docker-compose up, then deploy to Kubernetes with kubectl apply -f k8s/

Frequently Asked Questions about docker-k8s

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

FAQPage Schema
How do I create a production-ready Dockerfile using multi-stage builds?

Production-ready Dockerfiles use multi-stage builds to create smaller base images and configure non-root users. This approach minimizes the final image size and improves security by separating the build environment from the runtime environment.

How do I set up Docker Compose for local development environment parity?

Docker Compose orchestrates local development by defining multi-service workflows, volume management, and environment variables. This ensures your local testing environment matches production, allowing you to build and test applications reliably with docker-compose up.

What are the best Kubernetes manifest patterns for scaling and health checks?

Kubernetes manifest patterns for scaling and health checks involve configuring deployment replicas, liveness probes, and readiness probes. These configurations ensure your application remains available and recovers automatically from failures across different deployment environments.

Can I use Docker Compose and Kubernetes manifests together in a single project?

Yes, you can containerize an application with a Dockerfile, wire it to a Compose setup for local testing, and then deploy it to a Kubernetes cluster. This workflow uses minimal manifest sets and Helm chart scaffolds to transition from local development to production.

Do I need kubectl installed to deploy containers to a Kubernetes cluster?

Yes, kubectl is required to apply Kubernetes manifests and Helm chart scaffolds to a cluster. You build and run locally with Docker and docker-compose up, then use kubectl apply -f k8s/ to execute your production deployment.

Why should I use non-root users and smaller base images in Docker containerization?

Using non-root users and smaller base images in Docker containerization reduces the attack surface and overall image size. These Dockerfile best practices lead to more secure, efficient deployments that start faster and consume fewer resources in Kubernetes.