---
title: "Share bandwidth with Docker: one container"
description: "Run the Coronium agent as one locked-down container on a home server and earn a share of what buyers pay. No root, no open port, a read-only filesystem."
label: Docker
for: Anyone who already runs Docker
needs: Docker on a machine at home
ways: docker
template: article
audience: device-owners
updated: 2026-12-03
#facts:begin agent.supply
agent:
  instructions: "Search the documents of this site by keywords or a question. Send the text as q and read the Markdown that comes back: the passages that match, each under its source address and score. Nothing is generated."
  endpoint: "https://supply.coronium.ai/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://supply.coronium.ai/guides/search.md"
#facts:end agent.supply
---

# Share bandwidth with Docker: one container, nothing left on the host

The Coronium agent image shares bandwidth from one Docker container beside your settings file. The container carries buyers' web traffic and earns a share of what they pay. The container runs as an unprivileged user on a read-only filesystem with every capability dropped, and it opens no port.

Earnings start once Coronium charges buyers, which `GET /app/api/buy` answers in `charging`. Nothing on this page is a guarantee of earnings.

## Why run the agent in a container?

A container keeps the agent apart from the rest of the machine: no shell, no installer, its own certificate roots and nothing written to the host. A home server that already runs everything in containers then has no extra host install to track. Removing the container leaves only the settings file you made and the image, which `docker rmi` removes.

## How do I run the agent with Docker?

The agent runs with Docker in order: an account and its settings file, a checked image, one locked-down container and a look at its log. The log line `connected to the relay` confirms the container is sharing.

<!-- kit:steps -->
1. **Make the account, sign and add the device** on [this site](/signup). Keep the three settings in a file named `agent.env`, readable by you only.
2. **Download, check and load the image.** The image file is checked against the site's checksum list before `docker load` reads it.
3. **Run one container** with `--read-only`, `--cap-drop ALL`, `--security-opt no-new-privileges` and `--restart unless-stopped`, beside `agent.env`.
4. **Check the log.** `docker logs coronium-agent` shows `connected to the relay`.
<!-- /kit:steps -->

[The container guide](/guides/device-docker.md) has each command as one block, what to expect after each, and the update steps.

## What the image gives you

The Coronium image gives a locked-down container that starts with the machine, runs on x86-64 and ARM64, and removes cleanly. Each point below is a flag or a build choice you can read in the guide's command.

- **Locked down by default.** An unprivileged user, a read-only filesystem, no shell and no added privilege.
- **Starts with the machine.** With `--restart unless-stopped`, Docker starts the container again after a restart, unless you stopped it yourself.
- **Two architectures.** The image is built for x86-64 and ARM64, and both are `available` by the owner's decision, with the limit `not_run_by_coronium`.
- **Clean removal.** `docker rm -f coronium-agent` removes the container, and `docker rmi` the image.

## What does the container need?

The container needs Docker on Linux, outbound TCP to the relay and a home or mobile line of its own. A container on a hosting network, or a second container behind the same address, is withheld and earns nothing.

- Docker on Linux, outbound TCP to the relay and no inbound port.
- A home or mobile line on a network you control. A container on a hosting or data-centre network is withheld and earns nothing, as [device states](/guides/device-states.md) says.
- One container per public address. A second container behind the same address is withheld as `same_exit`.

No installer shows the agreement in a container. Your signature and the acceptance stored when you added the device are the container's record.

## Can I copy one agent.env to many containers?

No: copies of one device id and secret are one device, and each copy replaces the last at the relay. Many machines need a device each, or enrolment by token, where each machine makes its own id and secret at first boot. The token routes answer `enrol_tokens_off` until the operator opens them, and [fleets](/bandwidth-sharing/fleets) covers that.

## What can I undo?

A Docker device stops sharing at once with `docker stop coronium-agent`, and a container you stopped stays stopped. [Update, stop, remove and withdraw](/guides/device-lifecycle.md) has the remaining commands.

## Docker questions

<!-- kit:faq -->
### Does the container need privileged mode or host networking?

No, the Coronium container needs neither. The guide's command drops every capability and adds no privilege, and the agent only dials out, so no port is published.

### Can I run it on a VPS with Docker?

The container runs on a VPS, but it earns nothing there: a device on a hosting or data-centre network is withheld. Run the container on a home or mobile line.

### Does it work on a NAS or a Raspberry Pi?

Yes, the container works wherever Docker runs on Linux on x86-64 or ARM64. [Bandwidth sharing on a Raspberry Pi](/bandwidth-sharing/raspberry-pi) says which system a board needs.

### How do I update the image?

The image is updated by loading the new image after its check, removing the old container and running the same command again. `agent.env` stays as it is.
<!-- /kit:faq -->

The whole picture is on [the bandwidth sharing page](/bandwidth-sharing). Ready? [Create a device owner account](/signup).

<!-- facts:begin sentence -->
Mobile and residential proxies for AI agents: real IP addresses on real devices, and next the phones, Macs and browsers an agent can drive.

One account, one balance, one file to read.
<!-- facts:end sentence -->
