Install an agent

Run an agent on your own host.

Run a Myrikeep agent on your own Docker host, so it can read your data stores.

Before you install

  • You are a workspace owner or admin.
  • A Linux Docker host you control.
  • Outbound HTTPS from that host to your console and to the data store you will scan.
  • Mounted secrets and data are readable by UID 10001 (the image's user) or a suitable group.

The install command is a short-lived credential. Run it only on that host and do not share it. It enrolls an agent in the workspace that was selected when you created it. The command uses the published agent image configured by your console operator.

Installing an agent does not grant source access by itself. Each source also needs a connection and its agent credentials.

Step 1: Prepare a secrets directory (optional)

Skip this if you will not use secret files. Otherwise create the directory before you create the command:

sh
sudo install -d -m 0700 -o 10001 -g 10001 /srv/myrikeep/secrets

It is mounted read-only at /run/secrets inside the agent. See Agent credentials.

Step 2: Create the install command

  1. Open Install agent.
  2. Choose a name. Leave maximum enrollments at 1 for a single host.
  3. If you made a secrets directory, enter its exact path in Secrets directory.
  4. Create the command and copy it before leaving the page. It is shown once.

Do not add data folders until you have chosen their read-only scope. Each connector guide describes its mount and provider permissions.

Step 3: Run it on the agent host

Run it before the token expires. If it expires first, create a new command. Both result tabs use the same token.

Paste the one-liner from the Docker run tab into a terminal on the agent host.

Tip: Portainer and Dockge users can paste the compose file into a new stack. With the repository template, put the .env values in the stack's environment section instead of a .env file. Nothing else needs to change.

Step 4: Check the agent is online

Open Agents and wait for the agent to appear.

You should see the status Online. An enrolled agent that has never checked in does not complete the checklist.

Then return to Get started to connect your data store. For local folders, NFS or host-mounted SMB shares, follow the local mount guide.

The state volume

The named state volume at /var/lib/myrikeep holds the agent's identity. It is the only writable mount.

Do Don't
Reuse it when you recreate the container (to add secret or data mounts, or to upgrade) Clone it or share it between agents
Revoke the old agent and enroll a replacement if identity is lost Delete or clone it to fix a connection
Reuse a revoked identity volume for enrollment

Source credentials stay on the agent host. The console stores only their names and presence status.

Upgrades

Change the image tag in compose.yaml to a supported pinned tag and run docker compose up -d again. The state volume is reused, so the agent keeps its identity. See Upgrade your agent.

Troubleshooting

Status or symptom Meaning Fix
Online Recent server contact Nothing to do
Stale / Offline Contact is overdue Check container status, trusted TLS, host network access to the console and the configured HTTPS console URL
Never checks in The agent did not enroll or cannot reach the console Check docker ps, host network access and the console URL
Paused Control check-ins continue; no new jobs Resume the agent
Upgrade required / unsupported build New jobs cannot start Follow Upgrade your agent
Install command expired The token is no longer valid Create a new command
Credential present but agent offline These are separate states Fix agent connectivity first