Log inSign up

Containers and PaaS guides

Docker Compose, volumes, logs, Podman, Swarm and self-hosted deploy platforms. 14 guides in this topic.

Docker Compose stacks

Describe a multi-container app in one compose.yaml, keep secrets in env files, switch extras on with profiles and update the stack safely.

Docker volumes and bind mounts

Keep container data across rebuilds with named volumes or bind mounts, back them up with a throwaway container and fix ownership problems.

Read and limit Docker logs

Follow container output with docker logs, cap log files so they never fill the disk, and send container logs to journald when you prefer one place.

Free disk space used by Docker

Measure what Docker stores with system df, then remove stopped containers, unused images and build cache without touching data you still need.

Build, tag and push Docker images

Write a lean Dockerfile, build it with BuildKit or buildx, tag versions clearly and push them to a registry, plus why docker commit is a poor shortcut.

Run and manage containers

Start containers with docker run, list them, open a shell inside, stop and remove them, set restart policies and publish ports on 127.0.0.1 only.

Podman and rootless containers

Run containers without a daemon and without root using Podman, then turn them into systemd services with Quadlet unit files that start at boot.

Docker Swarm across servers

Join several VPS instances into one Swarm over public IPs, lock the cluster ports to node addresses and run services on encrypted overlay networks.

Automatic updates with Watchtower

Let Watchtower pull new image versions on a schedule, or replace it with a small systemd timer that runs docker compose pull on your terms.

Portainer CE web UI

Install Portainer Community Edition as a container, reach it safely over an SSH tunnel or HTTPS proxy, and manage containers, stacks and volumes.

Dokploy self-hosted PaaS

Install Dokploy with its script, secure the dashboard behind your own domain and deploy apps, Compose projects and databases from Git.

CapRover PaaS

Point a wildcard domain at your server, start CapRover as one container, finish setup with its CLI and deploy apps with a captain-definition file.

Dokku git push deploys

Install Dokku with its bootstrap script, add your SSH key, and ship apps with git push, plus Postgres and Let's Encrypt plugins.

Coolify on your own server

Install Coolify with one script, claim the admin account right away, move the dashboard to HTTPS and deploy apps, databases and services.