Articles by Deepak Prasad
Run Kubernetes YAML Locally with `podman kube play`
Run Kubernetes YAML locally with podman kube play on Podman 5.8.2 — supported kinds, Deployment replica limits, silently ignored fields, ConfigMaps, Secrets, PVCs, --build, --replace, kube down, user namespaces, and …
Podman Containerfile: Build Custom Container Images
Write Podman Containerfiles with FROM, RUN, COPY, ADD, ARG, ENV, USER, EXPOSE, HEALTHCHECK, ENTRYPOINT, CMD, multi-stage builds, and .containerignore — with build and run examples.
Manage Container Images with Podman
Manage Podman images in local storage — list and filter with podman images, tag and untag references, remove with podman rmi, prune dangling and unused images, read layer history with podman history, and diagnose …
Migrate from `podman generate systemd` to Quadlet
Migrate from podman generate systemd to Quadlet — deprecation nuance, convert a real generated unit, map run flags to .container directives, preserve volumes and container names, fix enable behavior, and avoid port …
Monitor Container Events with `podman events`
Monitor and replay Podman lifecycle events on Podman 5.8.2 — live streaming, --since and --until, --stream=false, filters for container event type pod and image, Go and JSON --format, journald and file event backends, …
Copy Files To and From Podman Containers with `podman cp`
Copy files to and from Podman containers with podman cp — host and container paths, directory semantics, stopped containers, container-to-container copy, archive ownership, tar streams, and podman mount alternatives.
Fix Podman Container Stops After Logout or Reboot
Fix rootless Podman containers that stop after SSH logout or host reboot on Podman 5.8.2 — loginctl enable-linger for session survival, --restart always and unless-stopped, podman-restart.service, should-start-on-boot …
View and Follow Container Logs with Podman
Read and follow Podman container and pod logs on Podman 5.8.2 — podman logs -f, --tail, --since, --until, --timestamps, multi-container and podman pod logs, journald and k8s-file drivers, LogPath on disk, max-size …
Fix Podman Container Exits Immediately
Fix Podman containers that exit immediately on Podman 5.8.2 — read Exited status and exit codes 125, 126, 127, 137, and 139, distinguish Podman failures from finished workloads, detached mode without a long-running …
Podman Compose: Run Docker Compose Files with Podman
Run Compose files with Podman — compare podman compose wrapper, Python podman-compose 1.5.0, and docker compose over the Podman socket, select providers with PODMAN_COMPOSE_PROVIDER and compose_providers, test pod mode, …
Access the Host from a Podman Container
How a Podman container reaches services on its host with host.containers.internal, host-gateway and --add-host, pasta rootless behavior, bind-address pitfalls, and troubleshooting when the host main IP fails.
podman Command in Linux: Run Containers, Images & Pods (RHEL/Fedora/Rocky)
podman runs OCI containers and pods without a central daemon. On RHEL, Rocky Linux, AlmaLinux, and Fedora it is the default container CLI — pull images, run rootless workloads, manage volumes and networks, and integrate …
Podman Bind Mount vs Volume: Which Should You Use?
Compare Podman bind mounts and named volumes — persistence, host access, portability, copy-up vs hidden image paths, backup paths, SELinux on RHEL, rootless ownership, and when to use -v or --mount for each type.
Build Container Images with `podman build`
Build container images with podman build — build context, Containerfile paths, tags, pull policies, layer cache, .containerignore, build args, build secrets, squash, rootless builds, and common build errors.
Manage OCI Artifacts with `podman artifact`
Package files as OCI artifacts with podman artifact add on Podman 5.8.2 — list and inspect, annotations and media types, push and pull through a registry, extract by title or digest, and mount with --mount type=artifact …
Podman Architecture: How Daemonless Containers Actually Run
Walk through Podman architecture on Linux — libpod, conmon, crun, namespaces, cgroups v2, overlay storage, and netavark — using real process and namespace inspection on a running container.
Install Podman on Debian: APT, Versions & Rootless Setup
Install Podman on Debian 12 Bookworm and Debian 13 Trixie with apt, compare 4.3.x and 5.4.x package branches, verify with podman info, test rootless mode, and run a hello container.
Podman 5 to Podman 6 Migration: Breaking Changes and Upgrade Guide
Migrate from Podman 5 to Podman 6 on Linux — plan BoltDB to SQLite conversion, replace legacy CNI and slirp4netns, verify cgroup v2 and Netavark isolation, upgrade through your distribution, and validate containers after …
Install Podman on Rocky Linux, AlmaLinux & CentOS Stream
Install Podman on Rocky Linux, AlmaLinux, and CentOS Stream with dnf from AppStream, verify with podman info, test rootless mode, run a hello container, and update or uninstall.
Install Podman on Ubuntu: APT, Versions & Rootless Setup
Install Podman on Ubuntu 22.04, 24.04, and 26.04 with apt, check the Podman version your release ships, verify with podman info, test rootless mode, and run a hello-world container.
Install Podman on RHEL: Commands, Versions & Requirements
Install Podman on RHEL 8, 9, and 10 from AppStream with dnf, compare podman and container-tools, check Quadlet feature gates by version, verify with podman info, test rootless mode, and run a hello container.
Migrate from Docker to Podman: Commands, Compose and systemd
Migrate Docker workloads to Podman — inventory docker ps and compose config, CLI translation, podman-docker shim, Dockerfile builds, volume data export, socket and Compose paths, Quadlet for managed services, Swarm gaps, …
Fix Podman `exec format error`
Fix Podman exec format error on Podman 5.8.2 — separate architecture mismatch from missing shebang scripts, compare host and image Architecture with podman image inspect, reproduce arm64 on amd64 without QEMU, pull the …
Fix Podman Container Cannot Access the Internet
Fix Podman container no internet on Podman 5.8.2 — separate DNS from routing with getent and curl, diagnose network=none and internal bridges, recover rootful egress after firewalld reload with podman network reload, and …
Fix Podman `no space left on device`
Fix Podman no space left on device on Podman 5.8.2 — identify whether blocks, inodes, /var/tmp, runRoot tmpfs, or XFS quota failed, read graphroot with podman info, reclaim with prune, and relocate graphroot with SELinux …
Fix Podman `x509: certificate signed by unknown authority`
Fix Podman x509 certificate signed by unknown authority on Podman 5.8.2 — install registry CA in certs.d, debug which endpoint failed, hostname SAN mismatch versus unknown CA, HTTP response to HTTPS client, tls-verify …
Fix Podman Volume Permission Denied: SELinux, UID Mapping and Rootless Containers
Diagnose Podman volume and bind-mount permission denied errors — separate Unix ownership, rootless UID mapping, SELinux labels, and filesystem limits before applying :z, :Z, :U, keep-id, or podman unshare chown.
Check if a String Contains a Substring in Go (`strings.Contains`)
Use strings.Contains to check whether a Go string contains a substring, including case-insensitive checks, multiple values, ContainsAny, ContainsRune, and common edge cases.
Golang Hide Password Input with x/term ReadPassword
Learn how to hide password input in Go using golang.org/x/term ReadPassword, detect terminals with IsTerminal, handle non-TTY input, and understand asterisk masking.
Golang fsnotify: Watch File and Directory Changes in Go
Learn how to use fsnotify in Go to watch files and directories, handle file events, watch one file reliably, add recursive watches, and debounce changes.

