FERROMAGNET / DOCUMENTATION

Run with Docker or Podman

Run Ferromagnet from a published container image with Docker Compose or Podman. The archive bundles the image, Compose file, config, client setup, license, and third-party notices. No source checkout, compiler, or registry login is needed. Choose amd64 for Intel/AMD servers or arm64 for compatible ARM servers, NAS, or Pi with a 64-bit OS. About 50 MB per architecture. Start with private loopback access.

1. Download and verify

mkdir -p ~/apps/ferromagnet-docker
cd ~/apps/ferromagnet-docker
curl -fSLO https://ferromagnet.app/downloads/ferromagnet-0.1.2-docker-amd64.tar.gz
curl -fSLO https://ferromagnet.app/downloads/SHA256SUMS
sha256sum -c SHA256SUMS --ignore-missing
# Continue only if the archive reports OK.
tar -xzf ferromagnet-0.1.2-docker-amd64.tar.gz
cd ferromagnet-0.1.2-docker-amd64

Use the arm64 archive on ARM hardware instead. Never mix architectures: the wrong image fails to start.

2. Load and start with Docker

docker load -i image.tar
docker compose up -d
docker compose ps
docker compose logs --tail=100

Open http://127.0.0.1:27183. HTTP stays on loopback and the app runs as an unprivileged user with capabilities dropped. Data persists in the ferromagnet-data named volume across container replacement. Discovery starts disabled with an empty index; enable [dht] enabled = true in ferromagnet.toml, recreate with docker compose up -d --force-recreate, and allow inbound UDP 27184 through the firewall. Provider rules and normal resource limits still apply.

For native authentication, create a password file inside the data volume, then append an [auth] section pointing at it and recreate:

docker compose run --rm ferromagnet create-password --username YOUR_LOGIN --output /app/data/ferromagnet.htpasswd
[auth]
enabled = true
htpasswd_file = "data/ferromagnet.htpasswd"

From another device, use a tunnel: ssh -N -L 127.0.0.1:27183:127.0.0.1:27183 YOUR_USER@YOUR_SERVER. Shared use also needs HTTPS at a trusted proxy, authentication, and edge rate limits. Connect a torrent client with the included DOWNLOAD-CLIENTS.md; put passwords in a private .env using the variable names in compose.yaml.

3. Podman instead of Docker

podman load -i image.tar
podman run -d --name ferromagnet --network=host --cap-drop=ALL --security-opt=no-new-privileges:true -v ferromagnet-data:/app/data:U --mount type=bind,source=$PWD/ferromagnet.toml,target=/app/ferromagnet.toml,readonly ferromagnet:0.1.2

The image declares an unprivileged app user, verified on Docker. On rootless Podman, add :U to the data volume so that user can write to it. Where a host restricts published-port forwarding, --network=host with the loopback bind keeps access private without exposing a port. Manage the same ferromagnet.toml, password, discovery, and client steps as above.

4. Upgrade, backup, and remove

Stop with docker compose down without -v; down -v deletes all data. Back up the named volume while stopped, plus config, .env, and the password file. Load the new image, update only the image version in compose.yaml, and keep the same project directory so the existing volume is reused. Keep the old image and a matching stopped backup for rollback, and never run two versions against the same database. To remove everything, stop the container and delete the volume, config, and image only when you no longer need the index.

Troubleshooting

After a few days, send feedback with your version and hosting type. Redact credentials, hostnames, private URLs, and torrent details from logs.

Back to Ferromagnet