Skip to content
LabTether

Connect Docker

LabTether reads Docker through the LabTether agent installed on each Docker host. If you already run Portainer, you can connect Portainer instead.

LabTether has no agentless Docker connection. It does not use the Docker Engine API over the network, so you do not need to expose the Docker API over TCP.

Two paths

Method Best for What you get
Agent on the Docker host (recommended) Docker hosts you also want terminal, desktop or file access on Containers, images, Compose stacks, container stats, exec and logs, plus the host's metrics, terminal and files
Portainer connector Docker environments you already manage in Portainer Environments, containers and stacks from Portainer. Start, stop, restart, pause, kill and remove containers. Start, stop, redeploy and remove stacks

The agent finds Docker on its own when it runs on the same host.

  1. In LabTether, click + Add Device → Agent
  2. Generate a one-time enrollment token and copy the install command
  3. Run the command on your Docker host with sudo, then paste the token at its hidden prompt
  4. The host appears in Devices within seconds
  5. The agent reads the local Docker socket (/var/run/docker.sock). The hub sets up the Docker connection the first time an agent reports Docker, and the containers appear in Containers

Repeat this on each Docker host.

The Docker option in Add Device

+ Add Device → Docker does not take a URL or credentials. It needs at least one agent that reports Docker. It sets the Cluster Name that groups your Docker hosts, and the poll interval in advanced setup. Test Connector checks the connection, and Save, Sync & Close saves it and runs a sync.

Option B: Portainer

  1. In Portainer, create an API key that can list environments
  2. In LabTether, click + Add Device → Portainer
  3. Enter the Portainer base URL (for example https://portainer.local:9443) and the API key. Token ID is optional and only labels the key in LabTether
  4. Click Test Connection, then Save, Sync & Close

See Connectors for what the Portainer connector reads.

What you'll see

  • Containers page shows all containers with status, image, and per-container CPU and memory stats
  • On agent hosts you can start, stop, restart, pause, kill and remove containers, pull and remove images, run Compose up, down, pull and restart, and create a container or Compose stack from the device page
  • Services discovers web services running in containers
  • Dashboard includes container host metrics in its totals across your devices
  • Topology maps container relationships to their host

Troubleshooting

  • Agent not finding Docker: The agent service runs as root and reads /var/run/docker.sock by default. If Docker uses another socket, such as rootless Docker, set Docker Endpoint on the device's Agent Settings tab, or reinstall with --docker-endpoint <path>. The agent restarts to apply the change. Docker Enabled must be auto (the default) or true.
  • Portainer test passes but sync fails: The API key can reach Portainer but cannot list environments. Check the key's permissions in Portainer.