---
title: Run the Coronium device agent in Docker
description: Check the image digest, load it, and run the agent read-only with no shell as an unprivileged user. The log line to expect, and how to stop and remove it.
label: Run it in Docker
template: article
audience: device-owners
updated: 2026-11-26
---

# Run the agent in Docker

The Docker image runs Coronium's device agent as a container with no shell and no installer, as user 65534 rather than root, on a read-only filesystem. You download the image, check its digest, load it, write a settings file that only you can read, and run one container per public address. This page holds the Docker steps of [Sell bandwidth](/sell-bandwidth); the [guide for device owners](/guides/device-owners.md) is the full text, with the Linux kit and every device state.

<!-- kit:callout limit -->
The image is a preview. Its state in `/kit/index.json` is `preview`, with the limit `not_run_by_coronium`. An earlier build of the image connected on Coronium's relay. Each build is a new file, and Coronium has not run the published one. A billed request and the image's removal were not done with either.
<!-- /kit:callout -->

## What you need first

- A device owner account in the [farmer portal](/farmer), with the partner agreement signed and the device added. Adding it shows the device id, the device secret and the relay address once.
- Docker on Linux, and outbound TCP to the relay. The agent needs no inbound port.
- The image for your machine: `uname -m` prints `x86_64` for `amd64` and `aarch64` for `arm64`. The commands below use `amd64`.

With Docker there is no installer to show you the agreement, so your signature and the acceptance stored when you added the device are the record for it.

## Download, check and load the image

Download the list of digests and the image from the supply site, check the image against the list, and load it:

```sh
curl -fsSLO https://supply.coronium.ai/kit/SHA256SUMS
curl -fsSLO https://supply.coronium.ai/kit/coronium-agent-docker-amd64.tar
grep ' coronium-agent-docker-amd64.tar$' SHA256SUMS | sha256sum -c
docker load -i coronium-agent-docker-amd64.tar
```

The check must say `OK`. Stop if it does not. Nothing in `/kit/` is signed yet, so the digest is only as trustworthy as the HTTPS connection to the supply site. `docker load` prints the image name, `coronium-agent:<version>`, which the next steps use.

## Write the settings file

Make a file that only you can read, then open it in an editor:

```sh
touch agent.env && chmod 600 agent.env
nano agent.env
```

Write three lines into `agent.env` with the values from adding the device, with no quotes:

```sh
CORONIUM_RELAY=us1.almanac.channel:17001
CORONIUM_DEVICE=<device id>
CORONIUM_DEVICE_SECRET=<device secret>
```

Type or paste the secret into the editor, never on a command line, in an email or in a chat.

## Run the container

Run it with the image name `docker load` printed, and read its log:

```sh
docker run -d --name coronium-agent --restart unless-stopped --read-only \
  --cap-drop ALL --security-opt no-new-privileges --env-file agent.env coronium-agent:<version>
docker logs -n 20 coronium-agent
```

## How do I know it is connected?

The log says `connected to the relay` once the device is up, and states the cause and the fix of any problem.

A setting the agent refuses is not retried by the agent: Docker starts it again with a growing pause until you fix the file, remove the container and run it again. In the farmer portal the device then waits as `new` until its first measurement.

## How do I change a setting?

Docker reads `agent.env` when it creates the container, so `docker restart` keeps the old settings. After you change the file, run `docker rm -f coronium-agent` and the `docker run` line again.

## How do I stop or remove it?

`docker stop coronium-agent` stops sharing, and it stays stopped after a reboot. `docker start coronium-agent` starts it again.

To remove it, delete the container, the settings file that holds the secret, and the image if you want it gone:

```sh
docker rm -f coronium-agent
rm agent.env                          # it holds the secret
docker rmi coronium-agent:<version>   # if you want the image gone too
```

Then tell the operator, so the device is withdrawn. Withdrawal does not stop a running container, so stop it first.

## What the container holds and sends

The image holds the agent and public certificate roots, and nothing else. The agent writes no files and logs one line when its connection to the relay goes up or down, with no line per request and no destination address. It sends Coronium the device id, the device secret, the protocol version, its name and version, and how many connections it will carry at once. [What the agent does on your device](/sell-bandwidth/what-the-agent-does) covers what it refuses to connect to and what Coronium records.

Run one container per public address. On a residential network, a second device behind the same connection is [withheld](/peer-proxy-network/glossary#withheld) as `same_exit`: the device enrolled first keeps the exit. The [stated limits](/guides/limits.md) list what is not built.

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

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