How to configure and mount a remote host #450
Replies: 2 comments 1 reply
-
|
Mental model In the standard setup, the controller dials out to each agent. The agent is a passive HTTP server; it has no idea where the controller lives and doesn't need to. You put One thing worth knowing: there's an experimental edge mode ( Minimal config to get connected Agent machine (on the remote host): services:
drydock-agent:
image: codeswhat/drydock
command: --agent
ports:
- "3000:3000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DD_AGENT_SECRET=pick-a-long-random-string
- DD_WATCHER_LOCAL_SOCKET=/var/run/docker.sockController machine: services:
drydock:
image: codeswhat/drydock
ports:
- "3000:3000"
environment:
- DD_LOCAL_WATCHER=false # pure aggregator, skip local watcher
- DD_AGENT_REMOTE1_HOST=192.168.1.50
- DD_AGENT_REMOTE1_SECRET=pick-a-long-random-string # must match agent DD_AGENT_SECRET
A docker trigger ( The three gotchas that actually bite people 1. Plain HTTP + a secret = startup error, not a warning. The controller throws on startup when a secret is configured over HTTP: On a private LAN, add 2. Forgetting Without 3. Missing The agent won't start at all if neither Log checklist: what to look for On the controller (
On the agent ( The controller retries with backoff (up to 60s between attempts) so connection errors repeat in the log until the agent is healthy. If you're still stuck, paste your controller logs (the lines starting with |
Beta Was this translation helpful? Give feedback.
-
|
Thank you. I think now is more clear of what to do. I thing the error was related to the connection not been HTTPS and the controller was restarting continuously. So as I understand I need to add to the controller YML DD_AGENT_ALLOW_INSECURE_SECRET=true to bypass this error? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to connect a remote host (agent) to the main drydock controller but I had no success.
The documentation is not straightforward.
Can someone explain the process and the steps to set it up?
Beta Was this translation helpful? Give feedback.
All reactions