Run the edge agent
This guide is for whoever runs the Axiad edge agent on a machine inside your network — usually someone on the IT or infrastructure team. Your Mesh administrator sends you two things: a one-time enrollment token and a command to run. This page walks you through running that command and confirming the agent connected.
If you manage connectors from the Mesh dashboard instead, see Set up an on-prem connector.
What the edge agent is
The edge agent is a small program that runs as a container on a machine inside your network. It lets Mesh reach internal systems that aren't exposed to the internet.
The agent only ever connects out to Mesh over HTTPS, and keeps that secure connection open. It never accepts incoming connections — so you don't need to open any firewall ports for it.
Before you begin
Here's what you need to have ready:
- A Linux machine inside your network with Docker installed and running (Step 1 shows how to check). Another container runtime such as Podman works too.
- Outbound HTTPS (port 443) from that machine to Mesh. No inbound ports.
- A network path from that machine to the internal systems you want Mesh to collect from.
- From your Mesh administrator: your one-time enrollment token and the command to run.
The enrollment token is valid for 15 minutes and works only once.
The 15 minutes starts when your administrator creates the token, not when it reaches you. So if it came to you after a delay — an email that sat for a while, or a handoff between people — you may have less time left, or none. Run the command as soon as you get the token, and if you're not sure how long ago it was created, just ask for a fresh one.
If the token expires first, enrollment fails with enroll: ENROLL_TOKEN expired. Ask your
administrator to register the agent again and send a new token — there's nothing to clean
up first, and it doesn't matter that an earlier try failed.
Step 1 — Check that Docker is installed and running
The agent runs as a Docker container, so first make sure Docker is installed and running. Open a terminal on the machine and follow along.
Check that Docker is installed:
docker --version
You should see a version string, for example Docker version 27.3.1, build ce12230. If
you get command not found, install Docker first — see
Install Docker Engine — then come back here.
Start Docker and confirm it's running:
sudo systemctl start docker
docker info
docker info prints the server details when Docker is running. If you instead see
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?, Docker isn't started yet — run the systemctl start line above and try
again.
The agent should come back on its own after a reboot, so set Docker to start automatically:
sudo systemctl enable docker
systemctl only exists on systemd Linux hosts. With Docker Desktop (macOS or
Windows), start it from your terminal instead:
docker desktop start
Or open the Docker Desktop app and wait until it says the engine is running. Either way,
docker info is the check — if it succeeds, you're ready for Step 2.
The agent image needs nothing Docker-specific — any standard container runtime that can pull an image and run a container with a mounted volume works.
- Podman — mostly a drop-in replacement (
podman runtakes the same flags asdocker runhere). One thing to watch: in Podman's default rootless mode, you may need one extra one-time step to give the agent write access to its storage before the first start. - containerd (via its
nerdctltool) — behaves like Docker directly, without Podman's rootless difference. - Kubernetes — if you already run Kubernetes, you can deploy the agent as a normal workload there instead of a standalone container. The storage-permission step still applies, just handled the usual Kubernetes way on the volume.
Step 2 — Run the agent
Your administrator copies the command from the Add agent dialog in Mesh, which shows it after they select Issue token, and sends it to you along with the token. Here's what they see:

The command has three parts — one takes your token, one downloads the agent, one runs it:
# 1) Paste your enrollment token. (read -rs keeps it out of your command history.)
read -rs ENROLL_TOKEN && export ENROLL_TOKEN
echo "${#ENROLL_TOKEN}" # Prints the token's length — make sure it's NOT zero. Nothing
# shows on screen as you paste, so this is your only check.
# 2) Download the agent image. 1.0.7 is an example — use the version the dialog shows you.
docker pull axiadpublicregistry.azurecr.io/mesh-edge-agent:1.0.7
# 3) Run the agent.
docker run -d --name axiad-edge-agent --restart unless-stopped --user 0:0 \
-e ENROLL_TOKEN="$ENROLL_TOKEN" \
-e MESH_SSRF_ALLOW_PRIVATE=1 \
-e STRICT_CONFIG_SIGNING=true \
-v mesh-edge-data:/var/lib/mesh-edge \
axiadpublicregistry.azurecr.io/mesh-edge-agent:1.0.7
On connectors that have the CA certificate (PEM) field, paste your CA there instead — see Set up an on-prem connector and SailPoint IdentityIQ. The steps below are the fallback for connectors on versions that predate that field, and for custom (REST) connectors whose template has no such field. They apply to every connector on the agent, which is why the field is preferred.
To give the agent your CA yourself:
-
Build a bundle file that contains the agent image's
/etc/ssl/certs/ca-certificates.crtfollowed by your CA certificate. Keep the public CAs in it — the agent downloads connectors over public HTTPS and needs them. The file must contain only CA certificates — never a private key. The agent image has no shell, so copy the file out of a stopped container rather than withdocker execordocker run ... cat. Use the same image as yourdocker runcommand:docker create --name ca-extract axiadpublicregistry.azurecr.io/mesh-edge-agent:1.0.7
docker cp ca-extract:/etc/ssl/certs/ca-certificates.crt ./ca-bundle.crt
docker rm ca-extract
cat your-ca.pem >> ca-bundle.crt -
Mount the file read-only into the container and point
SSL_CERT_FILEat it, by adding these two lines to thedocker runcommand, for example:-v /path/to/ca-bundle.crt:/etc/ssl/custom-ca-bundle.crt:ro \
-e SSL_CERT_FILE=/etc/ssl/custom-ca-bundle.crt \
Trusting the CA on the host itself has no effect, because the agent runs in its own container.
If you already use this bundle, see Move from the CA bundle to connector fields before you change it.
Run the first line on its own. The terminal waits quietly — paste your token and press
Enter. Nothing appears on screen (that's on purpose, so your token doesn't end up in your
command history). The echo line then prints the token's length; check that it isn't
zero, which is your one sign the paste actually worked.
Your token is held in a variable that only exists in the terminal window where you pasted
it. If you open a new window, switch users (for example sudo -i), or reconnect over SSH
before you run the agent, that variable is empty again — and Docker won't warn you.
The agent starts and then fails with a confusing config: gateway address unknown.
So paste the token and run the agent in the same window. If some time has passed,
run echo "${#ENROLL_TOKEN}" again and check it's still not zero before you continue.
If you accidentally copied an extra line break or a trailing space with the token, enrollment fails with a confusing error — and nothing on screen tells you the paste was messy. To check for a stray line break:
printf '%s' "$ENROLL_TOKEN" | wc -l
This should print 0. If it prints 1 or more, copy the token again and re-paste it.
What the parts mean:
| Part | What it does |
|---|---|
ENROLL_TOKEN | Your one-time token, from the first command. The agent uses it once to join Mesh, then remembers its own identity, so you never paste a new one. The token also tells the agent where your Mesh environment is. The agent needs the token every time it starts, so keep it in the container's settings. There's nothing else to point it at (no need to set MESH_GATEWAY). |
MESH_SSRF_ALLOW_PRIVATE=1 | Lets the agent reach systems on your private network. Keep it if any of your targets are internal (the usual case); drop it only if every target is on the public internet. |
-v mesh-edge-data:/var/lib/mesh-edge | Where the agent stores its identity and state. Docker creates this on first run — nothing to set up — and it survives restarts and upgrades. |
--user 0:0 | Runs the agent as root so it can create its storage on first start. |
--restart unless-stopped | Starts the agent again automatically after a reboot. |
STRICT_CONFIG_SIGNING=true | Tells the agent to accept only connector settings that Mesh has signed. On by default — leave it on. |
The command above keeps the agent's data in a Docker volume called mesh-edge-data.
That's the recommended default — Docker creates it for you, and with --user 0:0 there's
nothing to prepare.
If you'd rather store the data in a folder on the host machine, swap the -v for a
host path, for example -v /var/lib/axiad-edge:/var/lib/mesh-edge. Only the left side
changes; the right side stays /var/lib/mesh-edge. One catch: the folder has to exist
and be writable by the agent before you start it, or the agent stops right away with
mkdir .../store: permission denied.
Which user needs access depends on how you run the agent:
# If you keep --user 0:0, the agent runs as root — just create the folder:
sudo mkdir -p /var/lib/axiad-edge
# If you remove --user 0:0, the agent runs as its own user (ID 65532). Create the
# folder AND give that user access:
sudo mkdir -p /var/lib/axiad-edge
sudo chown 65532:65532 /var/lib/axiad-edge
When you pass the token with -e, it appears on the command line — which means it's
saved in your command history and visible in the machine's process list. To avoid that,
put the settings in a file and use --env-file instead:
cat > ~/mesh-edge.env <<'EOF'
ENROLL_TOKEN=paste-your-token-here
MESH_SSRF_ALLOW_PRIVATE=1
STRICT_CONFIG_SIGNING=true
EOF
docker run -d --name axiad-edge-agent --restart unless-stopped --user 0:0 \
--env-file ~/mesh-edge.env \
-v mesh-edge-data:/var/lib/mesh-edge \
axiadpublicregistry.azurecr.io/mesh-edge-agent:1.0.7
Don't put quotes around the values — ENROLL_TOKEN="abc" treats the quotes as part of
the token. Delete the file once the agent has joined.
Step 3 — Verify it enrolled and connected
Watch the agent's logs to confirm it joined Mesh and connected:
docker logs -f axiad-edge-agent
The agent prints its logs as JSON. Look for these messages, in order:
enroll: success— the agent registered with Mesh.agent.connect ok— the secure connection to Mesh is up. This line also shows which gateway it reached, for examplegateway=edge.example.axiad.io:443.heartbeat: initial tick sent— the agent has checked in and is healthy.

If this machine ran an agent before, you might see
enroll: ENROLL_TOKEN identity differs from the cached cert. That's fine — the agent
simply re-joins with your new token and drops the old identity. Nothing for you to do.
You can also ask the agent for its status directly:
docker exec axiad-edge-agent agent status
- Joined:
agent kid=... issued_at=... not_after=.... Thenot_aftervalue is when its certificate expires — it renews on its own. - Not joined yet:
agent: not enrolled.
docker exec only works while the container is actually running — which is exactly when
a struggling agent won't be, since it spends its time restarting. When that happens, you
can read the same status from a quick throwaway container that looks at the same stored
data. It needs no token and nothing else running — just reuse the same -v from your run
command:
# Use the tag you actually ran (1.0.7 is an example).
docker run --rm --user 0:0 -v mesh-edge-data:/var/lib/mesh-edge \
axiadpublicregistry.azurecr.io/mesh-edge-agent:1.0.7 status
This is the quickest way to check the agent's identity, certificate expiry, and last
crash reason (the last_crash= line) when the container won't stay up. You can also run
docker logs axiad-edge-agent on a stopped (but not removed) container to read its
recent logs — no running process required.
Once the agent is connected, let your administrator know. On their side it shows as Enrolled, and its Overview tab shows the version and platform you're running:

Keeping it running
-
Restart it:
docker restart axiad-edge-agent. The agent reuses its stored identity and reconnects — no new token needed. Heads up: a restart keeps the same settings the container started with. It won't pick up a new token or any changed-e/--env-filevalue, because a container's settings are fixed when you first run it. To change a setting — for example to fix a bad token — you have to recreate the container, not restart it: rundocker rm -f axiad-edge-agent, thendocker runagain. (This is why a corrected token sometimes seems to "not take effect" — a plain restart ignored it.) -
Stop it:
docker stop axiad-edge-agent. It shuts down cleanly (boot: shutdown complete) and stays down until you start it again. -
After a reboot: thanks to
--restart unless-stopped, the agent starts on its own — as long as Docker starts with the machine (Step 1). -
Certificate renewal: the agent's certificate lasts 90 days, and the agent renews it automatically about 7 days before it expires — over its existing connection, with no new token and no restart. The only way this breaks is if the agent stays completely offline for the full 90 days; then the certificate lapses and your administrator issues a new enrollment token.
-
Upgrade to a new version: there's no automatic update — you choose when to move. See Edge agent versions and upgrades for every release, what changed in it, and step-by-step upgrade and rollback instructions. Your administrator can see the running version on the agent's Overview tab in Mesh.
-
Remove it: if your administrator decommissions the agent in Mesh, it shuts down and won't reconnect. Version 1.0.3 and later also erase their own stored certificate, connector settings and credentials once the decommission reaches them — straight away if the agent is connected, otherwise the next time it starts and tries to connect (see Edge agent versions). If the agent runs an earlier version, or it's offline and won't be started again, remove the container and its stored data yourself:
docker rm -f axiad-edge-agent
docker volume rm mesh-edge-data
Move from the CA bundle to connector fields
If your agent already uses the SSL_CERT_FILE bundle from
Step 2, you can move to the field connector by connector:
paste the CA into each connector's field (the issuing CA and the root, plus any
intermediates) and save the connector again on the latest version. Keep the bundle
while any connector on this agent has no CA field, such as a custom (REST) connector
whose template doesn't offer one, and while the bundle holds any other certificate the
agent needs, such as your proxy's CA. Remove it only when it holds nothing but the CAs
you've now pasted into connector fields.
To remove it, recreate the agent with everything it has now except the bundle:
-
Save the agent's environment settings to a file only you can read. The file holds your agent's settings, including secrets such as the enrollment token and any proxy credentials. The agent needs the token every time it starts, so the new container needs it too. Keep the file out of folders that are backed up or synced, and delete it as soon as you're done (step 4, or step 6 if you go back):
rm -f ~/mesh-edge.env
(umask 077 && docker container inspect axiad-edge-agent \
--format '{{range .Config.Env}}{{.}}{{"\n"}}{{end}}' \
| grep -Ev '^(SSL_CERT_FILE|PATH)=' > ~/mesh-edge.env)
grep -c '^ENROLL_TOKEN=.' ~/mesh-edge.env # must print 1
grep -c '^SSL_CERT_FILE=' ~/mesh-edge.env # must print 0Don't continue unless both checks print what they should. If either doesn't, delete the file with
rm -f ~/mesh-edge.env, fix the cause (for example, a missingENROLL_TOKENon the agent) and run these commands again. -
Write down the agent's user, version and storage mount:
docker container inspect axiad-edge-agent --format 'User: "{{.Config.User}}" Image: {{.Config.Image}}'
docker container inspect axiad-edge-agent --format '{{range .Mounts}}{{.Type}} name={{.Name}} src={{.Source}} -> {{.Destination}}{{"\n"}}{{end}}'The storage mount is the one whose destination is
/var/lib/mesh-edge. For avolume, use itsname=value, for examplemesh-edge-data; for abind, use itssrc=value, the host directory. Ignore the mount for the CA bundle. See Write down your current settings first for more on these checks. -
Stop and rename the current agent so you can go back to it:
docker stop axiad-edge-agent
docker rename axiad-edge-agent axiad-edge-agent-previous -
Start the agent again with what you wrote down, and without the two bundle lines (
-e SSL_CERT_FILE=...and the-v ...:romount). Replace each<...>before you run it:<user>: the User value from step 2. If it was empty, leave out the whole--userline.<storage>: thename=value for avolume, or thesrc=value for abind. Don't copymesh-edge-datafrom an example if your agent uses a host directory: without its own storage the agent loses its identity and has to be enrolled again.<image>: the Image value from step 2, so the agent stays on the same version.
docker run -d --name axiad-edge-agent --restart unless-stopped \
--user <user> \
--env-file ~/mesh-edge.env \
-v <storage>:/var/lib/mesh-edge \
<image>Wait about 10 seconds, then check that the new agent stays up. The status should start with
Up, notRestarting:docker ps --filter 'name=^axiad-edge-agent$' --format '{{.Status}}'Then delete the settings file with
rm -f ~/mesh-edge.env. The new container keeps its own copy. -
Only now run each connector's connection test. While the bundle is mounted, a test can pass on a certificate only the bundle holds. When everything works, remove the previous container with
docker rm axiad-edge-agent-previous. -
If a test fails, add the missing certificate to that connector's field. To go back to the bundle instead, remove the new container, start the previous one, and delete the settings file if it's still there:
docker rm -f axiad-edge-agent
docker rename axiad-edge-agent-previous axiad-edge-agent
docker start axiad-edge-agent
rm -f ~/mesh-edge.env
Behind a proxy
If this machine reaches the internet through an HTTP proxy, tell the container about it
the usual Docker way — add -e HTTPS_PROXY=http://proxy.example.com:8080 to your
docker run command.
Troubleshooting
| Symptom | What to do |
|---|---|
Cannot connect to the Docker daemon at unix:///var/run/docker.sock | Docker isn't running. Start it with sudo systemctl start docker (or start Docker Desktop), then redo Step 1. |
Logs show enroll: ENROLL_TOKEN expired | The token ran out before the agent joined, and can't be reused. Ask your administrator to register the agent again, then run the command with the new token. |
Logs show enroll: ENROLL_TOKEN required... | The token never reached the container. Check that -e ENROLL_TOKEN="$ENROLL_TOKEN" is in your command. |
Logs show config: ENROLL_TOKEN is set but empty | The token variable is there but empty — usually a paste that didn't land, or a new terminal window where it was lost. Redo the read -rs ENROLL_TOKEN && export ENROLL_TOKEN step from Step 2, use the "Double-check the paste" check, and run the agent again. |
Logs show config: gateway address unknown | The token was missing or empty, so the agent couldn't find your Mesh address inside it. Check the token landed with echo "${#ENROLL_TOKEN}" (should not be zero) and re-paste it in the same terminal window. You don't need to set MESH_GATEWAY — the address comes from the token. |
| The token looks set, but the agent still says it's missing or empty | Either it was lost when you switched terminal windows (re-paste it in the same one), or you changed the token and only restarted the container. A restart keeps the old settings — recreate it instead: docker rm -f axiad-edge-agent, then docker run again with the correct token. |
Logs show MESH_GATEWAY="..." overrides the enrollment token's gateway "..." and the agent won't start | Something set MESH_GATEWAY to a different address than the one in your token. The agent refuses to join one Mesh environment and connect to another. Remove the MESH_GATEWAY setting and let the token decide, or ask your administrator for a token for the environment you meant to use. |
Logs show certificate signed by unknown authority | The agent connected to the wrong Mesh environment — easy to do by pointing at the wrong address. Double-check any MESH_GATEWAY setting, and make sure you copied the command from the right environment. |
| An Active Directory, SailPoint IdentityIQ or custom (REST) connection test fails because the certificate was signed by an unknown authority | The server's certificate was issued by your organization's own CA, which the agent doesn't trust. Paste the issuing CA's certificate (root plus any intermediates) into the connector's CA certificate (PEM) field and save. On connectors that predate the field, use the SSL_CERT_FILE bundle described in the note after the docker run command in Step 2: for an agent that is already running, first write down your current settings, then recreate it with docker rm -f axiad-edge-agent and docker run again with the same storage mount (-v) and --user as before, plus the extra options. Reusing the storage keeps the agent's identity and state; without it the agent has to enroll again. Also check that the connector's server address is a hostname listed in the certificate. |
docker exec axiad-edge-agent agent status says Container ... is restarting or ... is not running | docker exec only works while the container is up. Use the throwaway-container trick under Step 3 to read status, and check docker logs axiad-edge-agent for the last error. |
After an upgrade, logs show mkdir .../store/...: permission denied and the container keeps restarting | The recreated container is missing a --user setting the original had. This is different from the first-run host-directory case earlier in this guide — it happens when the storage was created under a non-default user (commonly --user 0:0) and the new docker run left that flag out, so the container falls back to the image's own nonroot user instead. Check what the previous container actually used — docker inspect <name> --format '{{.Config.User}}' works even on a stopped container you haven't removed yet — and pass the same --user value when you recreate it. See Write down your current settings first for capturing this before you remove anything. |
You never see agent.connect ok | The machine can't reach Mesh on port 443. Check your outbound firewall and DNS. |
| Your administrator sees the agent as Enrolled but Stale in Mesh | Joining Mesh and staying connected are two separate steps — the agent can join successfully but then fail to keep its connection open. Check the logs for agent.connect ok; if it's not there, it's the same port-443 problem as the row above. |
| A connector test can't reach an internal system | Make sure the machine can reach that system, and that MESH_SSRF_ALLOW_PRIVATE=1 is set. |
Need more detail while troubleshooting? Add -e MESH_LOG_LEVEL=debug to your
docker run command for more verbose logs.
Verify
You're done when:
docker infosucceeds — Docker is installed and running.docker logsshowsenroll: successandagent.connect ok.docker exec axiad-edge-agent agent statusshowsagent kid=....- Your administrator sees the agent as Enrolled in Mesh.