GUIDE

Keep the self-hosted honeypot current

The container cannot pull Docker Hub. Install a daily host timer. SENSOR OUTDATED in the app is only a hint — it does not update the sensor.

On this page

  1. Why the container does not self-update
  2. 1. Install the host timer
  3. 2. Confirm the badge is gone
  4. Disable

Why the container does not self-update

The honeypot runs with a read-only root, all Linux capabilities dropped, and no Docker socket. That is intentional. It cannot pull images and it must not be able to. Watchtower inside the image, or a docker.sock mount, would undo that isolation.

SENSOR OUTDATED on the Honeypots list is UI-only. It compares the last check-in version to Docker Hub. It does not pull, recreate, or restart anything on your VPS.

1. Install the host timer

On the Ubuntu VPS that already runs the sensor, install jarnis-honeypot-update and enable the systemd timer. It is part of a normal install, same as Docker. Daily, including weekends. Hub only (jarnis/honeypot:latest) — not GHCR.

Fixed. The updater with SHA-256 4a695138… replaces a deliberately stopped sensor on update, but the sensor stays stopped. If you disabled the timer because of this issue, install the updated script with the block below and re-enable the timer: sudo systemctl enable --now jarnis-honeypot-update.timer.
root@vps
d=$(mktemp -d) && cd "$d"
for f in jarnis-honeypot-update.sh jarnis-honeypot-update.service jarnis-honeypot-update.timer; do
  curl -fsSL "https://jarnis.io/guides/$f" -o "$f"
done
cat > SHA256SUMS <<'EOF'
4a6951382267586225129d65cff6b0f57d0c780d35fe68a36bca9e4b1af16808  jarnis-honeypot-update.sh
d3d16961a46f16b432bd5f58e29a3f1bc50225e0a2ebb166a7c0bde73da56baa  jarnis-honeypot-update.service
04453fcb41355927022705b881f0ad145750f10cd3d8b4fb28103d8166e4e03c  jarnis-honeypot-update.timer
EOF
if sha256sum -c SHA256SUMS; then
  install -m 755 jarnis-honeypot-update.sh /usr/local/sbin/jarnis-honeypot-update
  install -m 644 jarnis-honeypot-update.service jarnis-honeypot-update.timer /etc/systemd/system/
  systemctl daemon-reload
  systemctl enable --now jarnis-honeypot-update.timer
else
  echo 'CHECKSUM MISMATCH — nothing installed'
fi
cd / && rm -rf "$d"

The script runs daily as root. The block downloads the three files to a scratch directory and installs them only if sha256sum -c matches the sums above. These sums are served by jarnis.io, the same server as the files, so on their own they only protect against transfer errors and truncated downloads — not against a compromised website. Before installing, compare them with the sums in the honeypot README on GitHub. Signed checksums per release are planned.

The script pulls Hub, then recreates only JARNIS honeypot containers whose digest changed. Several sensors on one host (for example 9022/9023/9080 and 9122/9123/9180) are discovered by image or label. Carried over: token/env, published ports (incl. UDP and IPv6), volumes and bind mounts, network, labels, log settings, hostname, DNS and extra hosts. Always reset to the hardened defaults: restart policy, 64m RAM, 0.25 CPU, 64 PIDs, read-only root, no capabilities, no-new-privileges, /tmp tmpfs. A sensor without a volume on /var/lib/jarnis-honeypot gets one (jarnis-honeypot-state), so its SSH host key survives every later update. The old container is removed only after the new one has run for 8 seconds without a restart; otherwise the old one is restarted and gets its name back (a half-created new container is removed first). A stopped sensor is replaced but not started (no 8-second check). Unrelated containers are left alone.

No systemd? Cron fallback, still daily including weekends:

/etc/cron.d/jarnis-honeypot-update
20 4 * * * root /usr/local/sbin/jarnis-honeypot-update

The 20 4 cron line and the 04:20 timer use the host timezone. On a host set to UTC that is 05:20 Europe/Vienna in winter. Every run (timer, cron, or manual) appends to /var/log/jarnis-honeypot-update.log. jarnis-honeypot-update --help or -h prints usage and does nothing else.

Optional /etc/jarnis-honeypot-update.conf: set NAME to pin one container. Without it, every matching honeypot on the host is updated. ENV_FILE is used only when NAME is set. The script never prints the token. HEALTH_WAIT (default 8) sets how many seconds the new container must stay up. Only one run at a time (lock /run/jarnis-honeypot-update.lock; running it by hand as a non-root member of the docker group needs e.g. LOCK_FILE=$XDG_RUNTIME_DIR/jarnis-honeypot-update.lock). A failed update exits non-zero, so systemctl status shows it. A stopped sensor with the current image also fails the run — set ALLOW_STOPPED=1 if you stopped it on purpose; the script never starts a stopped sensor (on a new image it is replaced but stays stopped).

Release note (update from Sept 2026). With this update each sensor's SSH banner (version string) changes once to a new value chosen per install, then stays stable. The SSH host key stays the same, so known_hosts entries do not change. A stopped sensor now makes the daily update run fail; set ALLOW_STOPPED=1 in /etc/jarnis-honeypot-update.conf if you stopped it on purpose.

2. Confirm the badge is gone

After the timer recreates a container, the sensor checks in with the new image version. Open Honeypots. The SENSOR OUTDATED badge on that row is gone. First check-in is usually under a minute; the timer itself runs once a day (04:20 in the host timezone, and once shortly after boot if it missed a run).

Demo Honeypots row with SENSOR OUTDATED badge (placeholder UI)
Placeholder: SENSOR OUTDATED on a demo sensor. No live account.
Demo Honeypots row after check-in, badge gone (placeholder UI)
Placeholder: same row after check-in. Badge gone. Demo IP 203.0.113.10 only.
Manual check. systemctl list-timers jarnis-honeypot-update.timer and journalctl -u jarnis-honeypot-update.service -n 40. A line up to date means Hub matched. recreated means that container was replaced.

Disable

Stop automatic pulls. Existing containers keep running on the image they already have.

root@vps
systemctl disable --now jarnis-honeypot-update.timer
rm -f /etc/cron.d/jarnis-honeypot-update

Also see the self-hosted install. Image: Docker Hub. Questions: hello@jarnis.io.