Run in Docker
The official image runs IdlePay in a small Alpine container. It links itself with an enrollment key and keeps its sign-in on a volume, so it survives restarts and upgrades.
| Image | ghcr.io/idlepay/idlepay |
| Tags | latest, and one per release in the form X.Y.Z (no v) |
| Architectures | linux/amd64, linux/arm64, linux/arm/v7 (Docker picks the right one) |
| Volume | /etc/idlepay (sign-in, settings and status) |
| Ports | None. The container only makes outgoing connections. |
1. Create an enrollment key
In your dashboard, open Devices and create an enrollment key. Copy it: it starts with ipk_ and is shown only once. One key can link many containers. See enrollment keys.
2. Run the container
docker run -d --name idlepay --restart unless-stopped --hostname my-server \ -e IDLEPAY_KEY=ipk_... \ -v idlepay:/etc/idlepay \ ghcr.io/idlepay/idlepay
-e IDLEPAY_KEYlinks the container to your account on its first start. After that the key isn't used again, and it's safe to revoke.-v idlepay:/etc/idlepaykeeps the sign-in. Without a volume, every new container becomes a new device.--hostnameis the device name in your dashboard. Without it you get the random container ID.--restart unless-stoppedbrings it back after a reboot or a crash.
Check that it started:
docker logs -f idlepay docker exec idlepay idlepay status
Docker Compose
Save this as compose.yaml, put your key in it, and run docker compose up -d:
services:
idlepay:
image: ghcr.io/idlepay/idlepay:latest
container_name: idlepay
hostname: my-server
restart: unless-stopped
environment:
IDLEPAY_KEY: ipk_...
# IDLEPAY_DIRECT: "off" # share only the proxies below
volumes:
- idlepay:/etc/idlepay
# - ./proxies.txt:/proxies.txt:ro
# network_mode: host # Linux only: share a VPN or extra IPs on the host
volumes:
idlepay:
Environment variables
| Variable | Values | What it does |
|---|---|---|
IDLEPAY_KEY | ipk_… | Enrollment key used to link the container the first time. Ignored once the volume holds a sign-in. |
IDLEPAY_DIRECT | on / off | Whether to share the container's own connection (the host's IP). true/1 and false/0 work too. Unset keeps the saved choice, which is on for a new container. |
IDLEPAY_CONFIG | path | Set by the image to /etc/idlepay/config.json. Leave it alone. |
Share proxies
One container can share the host's connection plus any number of your own static proxies. Put them in a proxies.txt file, one per line, in any supported format, and mount it at /proxies.txt:
docker run -d --name idlepay --restart unless-stopped --hostname my-server \ -e IDLEPAY_KEY=ipk_... -e IDLEPAY_DIRECT=on \ -v idlepay:/etc/idlepay -v "$PWD/proxies.txt:/proxies.txt:ro" \ ghcr.io/idlepay/idlepay
- The file is the whole list. On every start it replaces the saved proxies, so edit it and run
docker restart idlepayto apply changes. - Use
IDLEPAY_DIRECT=offto share only the proxies and not the host's own IP. - If nothing in the file can be read, the log says "No usable proxies in /proxies.txt".
Without a mounted file, add proxies to a running container instead. They're kept on the volume:
docker exec idlepay idlepay proxy add host:port:user:pass docker exec -i idlepay idlepay proxy add --file - < proxies.txt docker exec idlepay idlepay proxy list --state failed
Don't do both: a mounted /proxies.txt replaces proxies added with docker exec on the next start.
Share a VPN or extra IPs (Linux hosts)
A container normally only sees Docker's private network, so it can share just the host's main IP. To share a VPN running on the host, or extra IP addresses on the host, use host networking. Leave out --hostname: the device takes the host's name.
docker run -d --name idlepay --restart unless-stopped --network host \ -e IDLEPAY_KEY=ipk_... -v idlepay:/etc/idlepay ghcr.io/idlepay/idlepay docker exec -it idlepay idlepay vpn add docker exec idlepay idlepay ip add 203.0.113.5
Host networking only works on Linux. Docker Desktop on Windows and macOS can share the host's connection and proxies, but not a VPN.
Running commands inside the container
Every command works through docker exec. No sudo is needed:
docker exec idlepay idlepay status --all docker exec idlepay idlepay nodes docker exec idlepay idlepay direct off docker exec idlepay idlepay proxy export --with-passwords > proxies-backup.txt
Changes apply within a few seconds without a restart.
Updates and versions
IdlePay updates itself inside the running container within minutes of each release, the same way it does everywhere else (Updates). You don't have to pull new images. If you recreate the container, it starts from the version in its image and updates itself again. To move a container to the latest image:
docker pull ghcr.io/idlepay/idlepay docker rm -f idlepay docker run -d --name idlepay ... # the same command as before, same volume
With Compose: docker compose pull && docker compose up -d. A version tag such as ghcr.io/idlepay/idlepay:X.Y.Z only sets the starting version. The app still updates itself. Every version is listed on the releases page.
Several containers
- Several containers on one host don't earn more. They share the same public IP, and only one connection per IP is used. The others show as duplicate. To earn on more IPs, share proxies or extra IPs from one container.
- Give each container its own volume. Two containers on one volume clash. The second logs "IdlePay is already running on this computer".
- Each new volume is a new device and uses one use of the enrollment key.
- Don't copy a volume to another machine. The same device token live from two IPs is flagged as a cloned token. See Rules.
Log messages
| Message | What to do |
|---|---|
| IDLEPAY_KEY is not set. … (waiting, not retrying) | The volume holds no sign-in and no key was given. Recreate the container with -e IDLEPAY_KEY=ipk_…. It waits instead of exiting so it doesn't restart in a loop. |
| Sign-in with IDLEPAY_KEY failed (check the key under Devices: revoked, expired or out of uses?); retrying in …s | Check the key under Devices, or create a new one and recreate the container. It retries on its own, waiting from one minute up to an hour. |
| IDLEPAY_DIRECT must be on or off; ignoring … | Use on or off. |
| No usable proxies in /proxies.txt | Check the file's format. Lines starting with # are ignored. |
| this device was removed from your account — sign in again to keep earning | The device was removed in the dashboard. Remove the volume and start again with a key. |
Remove it
docker rm -f idlepay && docker volume rm idlepay
Then remove the device under Devices.