intelligence_src_6dc544294b7f21f98a
- Source-provided label
- Publisher RSS metadata
- Evidence class
- mentioned in report
- Confidence
- Not reported
- Observed
- Dec 03, 2026 06:20 UTC
- Retrieved
- Dec 03, 2026 06:25 UTC
Docker on a VPS is the quickest way to run self-hosted apps: one compose.yaml per app, one command to start it, and nothing installed directly on the host. It also has two traps that catch almost everyone on a fresh server: published ports skip your ufw firewall, and container logs grow until the disk is full. This guide installs Docker the way the Docker documentation recommends on Ubuntu 24.04 and Debian 12, fixes both traps, and runs a small Compose stack behind a reverse proxy. 0. Harden the server first Do the first-hour basics before you install anything: updates, SSH keys, a firewall, fail2ban. The open-source vps-first-steps script does that without locking you out: curl -fsSLO https://raw.githubusercontent.com/phantomvps/vps-first-steps/main/vps-first-steps.sh less vps-first-steps.sh sudo bash vps-first-steps.sh --user deploy --allow 80,443 1. Install Docker Engine from Docker's repository The distribution packages (docker.io) work but lag behind, and they do not include the Compose v2 plugin in the same way. Remove any old packages, then add Docker's repository. for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove -y "$pkg" 2>/dev/null done sudo apt-get update sudo apt-get install -y ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings . /etc/os-release sudo curl -fsSL "https://download.docker.com/linux/$ID/gpg" -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/$ID $VERSION_CODENAME stable" \ | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin $ID is ubuntu or debian and $VERSION_CODENAME is noble or bookworm, read from /etc/os-release, so the same block works on both. Check it: sudo docker run --rm hello-world docker compose version Note the command is docker compose (with a space): Compose v2 is a Docker CLI plugin. The old Python docker-compose is end-of-life. Should you add your user to the docker group? sudo usermod -aG docker deploy lets deploy run Docker without sudo. Be aware that membership in the docker group is effectively root on the host: anyone in it can mount / into a container. On a single-admin server that is usually acceptable; just do not hand that group to an app user. Log out and in again for it to take effect. 2. Rotate container logs By default Docker uses the json-file log driver with no size limit. A chatty container can fill the disk in days. Set a global limit in /etc/docker/daemon.json: { "log-driver": "json-file", "log-opts": { "max-size": "10m", "max-file": "3" } } sudo systemctl restart docker This applies to containers created after the change. Recreate existing ones (docker compose up -d --force-recreate) to pick it up. 3. The ufw trap: published ports bypass your firewall This surprises almost everyone. When you publish a port with -p 8080:80 or ports: - "8080:80", Docker inserts its own iptables rules that accept traffic for that port before ufw's rules are evaluated. ufw status still shows the port as closed, but the service is reachable from the whole internet. Prove it to yourself once: sudo docker run -d --name trap -p 8080:80 nginx:alpine # from your laptop: curl -I http://YOUR_SERVER_IP:8080 # answers, even though ufw never allowed 8080 sudo docker rm -f trap Two good ways to handle it: A. Bind published ports to localhost and put a reverse proxy in front. This is the simplest pattern: ports: - "127.0.0.1:8080:80" Now only processes on the server (your reverse proxy) can reach it. Only the proxy's ports 80 and 443 face the internet, and you allow those in ufw. B. Do not publish at all. Put the ap
6cb75d900ac39bf332e6ed7555ede5aef538c0d0c464938a2a16028283776c80Network indicators are visibly defanged. This page does not make them clickable or send them to another service.
No validated file hashes or network indicators are stored for this record.
This record contains metadata and attribution only. It does not host, download, unpack, render, or execute malware samples.
Sources represented on this page. Publication and observation dates describe the content; successful batch dates describe local collection. A recent batch does not certify complete coverage or current provider availability.
1 sources: 0 stale, 0 needing attention, 0 paused, 0 unverified.
Stale means older than twice the recorded collection interval, with a minimum of one hour; without an interval, the threshold is 24 hours. Cached content remains available while a feed is stale, paused, or unverified.