MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Container Creation Tools: Complete Guide to Docker, Podman, BuildKit and 40+ Alternatives

Featured illustration showing image builders, container engines and orchestration tools.

Container creation tools — Build, run, isolate and orchestrate modern workloads

A container is an isolated process or group of processes packaged with the filesystem and configuration needed to run consistently. Choosing a container tool begins with a simple question: are you building an image, starting an instance, or managing workloads across machines? This guide separates those jobs and provides a practical selection framework for developers, DevOps engineers and platform teams.

1. What does creating a container mean?

An image is a reusable artifact; a container is an instance created from an image or root filesystem. Linux application containers normally share the host kernel and use namespaces for isolation and cgroups for resource management. They are not full virtual machines. On macOS and Windows, Linux containers typically execute inside a Linux VM.

Four stages from application source to image, container instance and lifecycle operations.

From source to workload — A typical OCI application container lifecycle

2. Container engines and system containers

Tool

Role and best fit

Docker

General application containers; broad ecosystem and Compose.

Podman

Daemonless application containers; rootless Linux workflows.

nerdctl

Docker-style CLI on containerd; requires runtime and networking setup.

LXC

Low-level Linux system containers with a full userspace.

Incus

System containers and virtual machines; image-based administration.

LXD

System containers and VMs; Canonical ecosystem.

Apptainer

HPC and scientific workloads; SIF images.

SingularityCE

Scientific computing and HPC; SIF images.

systemd-nspawn

Boot or execute a Linux userspace from a root filesystem.

FreeBSD Jails

FreeBSD OS-level isolation; not Linux OCI containers.

3. Container image builders

Builders produce images, not necessarily running application instances. Select the builder according to the application language, CI security model, cache requirements and output format.

Tool

Input / differentiator

Docker build / Buildx

Dockerfile; BuildKit backend; multi-platform builds.

BuildKit

Dockerfile or LLB; standalone daemon and buildctl.

Buildah

Containerfile or scripted layer construction; daemonless.

Podman build

Dockerfile or Containerfile; Buildah-based.

Kaniko

Dockerfile; original Google repository archived; assess maintained forks.

Jib

Java Maven / Gradle; builds without Docker daemon.

Cloud Native Buildpacks

Source detection and standardized build lifecycle.

Paketo Buildpacks

Buildpack implementations for popular languages.

ko

Go applications; no Dockerfile required.

apko

Declarative YAML; Alpine/Wolfi package-based images.

Bazel rules_oci

Bazel build rules and reproducible build graphs.

Nix dockerTools

Nix expressions; declarative image construction.

Dagger

Programmable CI pipelines using containerized execution.

Earthly

Earthfile-based builds; verify maintenance before adoption.

OpenShift S2I

Source plus builder image; OpenShift workflows.

4. Container runtimes: high and low level

Control layer invokes container management and an OCI runtime; actual paths vary by engine.

Runtime architecture — Typical Linux application container stack

Runtime

Function

containerd

Image and container lifecycle; CRI plugin for Kubernetes.

CRI-O

Kubernetes CRI implementation; delegates OCI execution.

runc

Low-level OCI runtime; creates processes from OCI bundles.

crun

Low-level OCI runtime written in C.

youki

Low-level OCI runtime written in Rust.

gVisor / runsc

Userspace kernel sandbox for stronger workload isolation.

Kata Containers

Lightweight VM-backed isolation.

runhcs

Windows container execution through host compute services.

Wasmtime / WasmEdge

WebAssembly execution; distinct from ordinary Linux containers.

Docker Engine commonly uses containerd and runc internally. Kubernetes communicates with a CRI implementation; it does not require Docker Engine. CRI-O and containerd are alternatives at that layer, not image-building tools.

5. Desktop and orchestration tools

Tool

Use

Docker Desktop

Desktop development on macOS, Windows and Linux.

Rancher Desktop

Local containers and optional Kubernetes.

Podman Desktop

GUI for Podman and related development workflows.

OrbStack

macOS Linux containers and machines.

Colima / Lima

Linux VM-backed local development, especially macOS.

Finch

CLI for local container development, platform support varies.

Portainer

Management UI for supported container environments.

Kubernetes / OpenShift

Cluster scheduling and declarative workloads.

Docker Swarm / Nomad

Alternative workload orchestration.

EKS / AKS / GKE

Managed Kubernetes control planes.

Amazon ECS

AWS-native container orchestration.

K3s / MicroK8s

Lightweight Kubernetes distributions.

6. Hands-on: create and run application containers

Lab status: all container commands below are documented examples, independently untested in this environment. Use a disposable development machine with the relevant tool installed, network access and an available local port. Tags used for convenience are mutable; production builds should use approved versions or digests.

6.1 Docker lifecycle

Install Docker Engine or Desktop using the official platform instructions. Confirm the daemon is reachable, then run a local web server.

docker version
docker run -d --name gold-web -p 127.0.0.1:8080:80 nginx:alpine
docker ps
curl -f http://127.0.0.1:8080/
docker logs gold-web
docker stop gold-web
docker rm gold-webCode language: JavaScript (javascript)

6.2 Podman rootless workflow

On Linux, run as a regular user with rootless prerequisites configured. On macOS or Windows initialize and start a Podman machine if needed.

podman info
podman run -d --name gold-web -p 127.0.0.1:8080:80 docker.io/library/nginx:alpine
curl -f http://127.0.0.1:8080/
podman logs gold-web
podman rm -f gold-webCode language: JavaScript (javascript)

6.3 nerdctl with containerd

Requires running containerd, CNI plugins and appropriate permissions. Use a dedicated test namespace if sharing a host; do not manipulate Kubernetes-managed containers directly.

nerdctl version
nerdctl run -d --name gold-web -p 127.0.0.1:8080:80 nginx:alpine
curl -f http://127.0.0.1:8080/
nerdctl rm -f gold-webCode language: JavaScript (javascript)

7. Build your own OCI image

7.1 Prepare a static website

In an empty directory, save the following as index.html.

<!doctype html>
<html lang="en">
  <h1>Hello containers</h1>
</html>Code language: HTML, XML (xml)

Save this as Dockerfile in the same directory.

FROM nginx:alpine
COPY index.html /usr/share/nginx/html/index.html

7.2 Build and verify

docker build -t gold-site:1.0 .
docker run -d --name gold-site -p 127.0.0.1:8080:80 gold-site:1.0
curl -f http://127.0.0.1:8080/
docker rm -f gold-siteCode language: JavaScript (javascript)

Expected result: the response includes Hello containers. Run one lab at a time to avoid port collisions.

7.3 Alternative builders

podman build -t gold-site:1.0 .
buildah bud -t gold-site:1.0 .
nerdctl build -t gold-site:1.0 .Code language: CSS (css)

Run only the command corresponding to your installed builder. nerdctl build needs a running BuildKit daemon. Buildah and Podman commonly share storage when run under the same user; Docker and containerd stores may differ.

8. Kubernetes: create a container through a Pod

Use a disposable Kubernetes cluster and verify your current context before deploying. Save the following as gold-pod.yaml.

apiVersion: v1
kind: Pod
metadata:
  name: gold-web
spec:
  containers:
    - name: web
      image: nginx:alpine
      ports:
        - containerPort: 80Code language: CSS (css)
kubectl config current-context
kubectl apply -f gold-pod.yaml
kubectl wait --for=condition=Ready pod/gold-web --timeout=120s
kubectl port-forward pod/gold-web 8080:80

From a second terminal verify the response; stop port-forward with Ctrl+C before cleanup.

curl -f http://127.0.0.1:8080/
kubectl delete -f gold-pod.yamlCode language: JavaScript (javascript)

The Pod is a scheduling unit. In production, prefer a Deployment for replicated stateless applications, with probes, resource controls and a Service.

9. System containers and HPC

9.1 Incus system container

On a configured Linux Incus host with an available images remote, create a disposable Ubuntu system container. Image aliases can change.

incus launch images:ubuntu/24.04 gold-system
incus exec gold-system -- cat /etc/os-release
incus stop gold-system
incus delete gold-systemCode language: JavaScript (javascript)

9.2 Apptainer

On a configured HPC or Linux host, pull an OCI image as a SIF file and execute a command inside it.

apptainer pull gold-alpine.sif docker://alpine:3
apptainer exec gold-alpine.sif cat /etc/os-releaseCode language: JavaScript (javascript)

10. How to choose the right tool

Requirement

Starting choice

Why

Learning containers

Docker

Documentation and ecosystem

Rootless Linux

Podman

User-level container lifecycle

Containerd development

nerdctl

Native containerd workflow

CI image builds

BuildKit / Buildah

Cache or daemonless build options

Java images

Jib

Language-aware packaging

Go images

ko

Minimal source-driven workflow

System containers

Incus / LXC

Full Linux userspace

HPC

Apptainer

Scientific workload conventions

Production clusters

Kubernetes + containerd or CRI-O

Declarative lifecycle

Untrusted workloads

Kata / gVisor

Additional isolation boundary

11. Security and production best practices


  • Use trusted base images, pin digests, and rebuild regularly for security updates.

  • Run as a non-root user where supported; drop unnecessary Linux capabilities and avoid privileged containers.

  • Never bake secrets into image layers or build arguments; use supported secret mounts.

  • Scan images, generate SBOMs and sign artifacts; verify signatures at deployment.

  • Set resource requests and limits, use health probes and configure persistent storage separately.

  • Keep the container engine and host kernel patched; restrict access to the Docker socket and runtime APIs.

  • Avoid exposing development ports publicly; bind to loopback when possible.

  • Use a registry retention policy and immutable release tags; promote the same digest across environments.

12. Troubleshooting

Symptom

What to check

Cannot connect to Docker

Daemon status, context, permissions; do not make socket world-writable.

Port already in use

Stop your previous lab or choose another host port.

Image pull failed

Registry credentials, network, DNS, architecture, tag and rate limits.

Exec format error

Image architecture versus host; consider multi-platform builds.

Container exits immediately

Entrypoint, application logs and process exit status.

Rootless permission denied

Subordinate UID/GID mappings, file ownership and runtime prerequisites.

Kubernetes ImagePullBackOff

Pod events, registry permissions and imagePullSecrets.

Kubernetes CrashLoopBackOff

Previous logs, probes, resource limits and configuration.

docker logs gold-web
docker inspect gold-web
kubectl describe pod gold-web
kubectl logs gold-web --previous

Diagnostic commands assume the named resources exist; previous logs require a previously terminated container instance.

13. Practice exercises


  • Run a web container using Docker and Podman. Compare image IDs, logs and cleanup behavior.

  • Build the static website with two builders; compare image size and configuration rather than assuming digests match.

  • Modify the HTML, rebuild with a new tag and verify that the new container serves the updated content.

  • Run the Kubernetes Pod and deliberately use a nonexistent image tag in a disposable lab. Inspect events, then restore the valid tag and recreate the Pod if needed.

14. Frequently asked questions

Can containers be created without Docker?

Yes. Podman, nerdctl, Incus and low-level runtimes are examples; the best choice depends on the container type.

Is Buildah a Docker replacement?

It replaces many image-building tasks, not every Docker lifecycle or Compose function.

Is containerd the same as runc?

No. containerd manages lifecycle, while runc executes OCI bundles.

Can Kubernetes build images?

Kubernetes schedules workloads; separate builders can run as jobs or CI workloads.

Are Podman and Docker images interchangeable?

Generally yes for compatible OCI or Docker image formats, subject to platform and runtime features.

Are containers as secure as VMs?

Not automatically. Shared-kernel isolation has different risks; VM-backed or sandboxed runtimes may help.

What is the smallest toolset for a beginner?

Docker or Podman alone is sufficient for basic image and container experiments.

15. Official documentation and further reading

Docker documentation

Podman documentation

nerdctl project and installation

nerdctl BuildKit setup

BuildKit

Buildah

containerd

CRI-O

OCI specifications

Kubernetes documentation

Incus documentation

Apptainer documentation

Cloud Native Buildpacks

Jib

Mammoth WordPress plugin

Mammoth style maps

Reference note: nerdctl and Mammoth documentation were checked against retrieved official project pages during preparation. Other links are official project entry points supplied for further study but were not individually live-verified.

Conclusion

Start with Docker or Podman for local container creation, choose BuildKit or a specialized builder for CI, and use a supported CRI runtime with Kubernetes for orchestration. Treat system containers, HPC containers and sandboxed execution as distinct solutions rather than interchangeable Docker alternatives.

Publishing information

SEO title: Container Creation Tools: Docker, Podman & 40+ Alternatives

Meta description: Compare container creation tools, image builders and runtimes. Learn Docker, Podman, BuildKit, nerdctl and Kubernetes with practical examples.

Focus keyword: container creation tools

Secondary keywords: Docker alternatives, container image builders, OCI runtime, Podman, containerd, BuildKit

Categories: DevOps, Containers, Kubernetes

Tags: Docker, Podman, nerdctl, Buildah, BuildKit, OCI, LXC, Incus, CRI-O

URL slug: container-creation-tools-guide

WordPress import: use the embedded featured illustration as the post featured image manually if the plugin does not assign it. Set SEO fields in your SEO plugin and remove this publishing section from the post body. Preview code, image ALT text and headings before publishing.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Best Free and Open-Source FinOps Tools: The Complete Practical Guide

Featured image: Open-source FinOps tools for cost visibility, forecasting and optimization. Cloud and SaaS make it easy to deploy technology and equally easy to lose track of…

Read More

xnulinux Tutorial: How to Run macOS and PureDarwin on ARM64 Linux

A hands-on guide for Linux engineers, developers, SREs and operating-system researchers. Source review: 2 December 2026. Featured image — xnulinux technical field guide (1200 × 630 px)….

Read More

Public Package Repositories by Programming Language: A Complete Developer and DevOps Guide

Featured image: five major package ecosystems and their role in software distribution. Every modern application relies on external dependencies. Public package repositories provide the infrastructure through which…

Read More

Open-Source Enterprise FinOps: Centralize Cloud, SaaS and Software Costs

A practical architecture and implementation guide • Research reviewed 1 December 2026 Featured image: One view of technology spend. AWS bills are in one console. Google Cloud…

Read More

A Helpful Online Community Space for Every Malayali: KeralaOrbit

Introduction Kerala is a beautiful state with many people, places, and cultures. Every district has its own needs and local stories. People often look for help with…

Read More

Public Package Repositories by Programming Language

Public Package Repositories by Programming Language Public package repositories (also known as package registries, artifact repositories or dependency repositories) allow developers to publish, discover, download and manage…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x