Open
Description
It would be nice to also configure the agent to use a socket proxy like the main app can:
Swarmpits behavior can be reconfigured via Environment Variables.
SWARMPIT_DOCKER_SOCK
Docker SOCK location used by docker client. In case of socket proxy use following format: http://TCPENDPOINT:2375. Default is /var/run/docker.sock.
Thanks in advance, also for any hints, ideas, considersations in the meantime :)
Reacted by Marcel Arndt and Aram Akhavan
Metadata
Metadata
Assignees
Labels
No labels
Activity
kaysond commentedon Dec 4, 2021
Bump. Can someone on the swarmpit team point us in the right direction for a PR?
kaysond commentedon Dec 4, 2021
Looks like you might be able to do it just by setting the
DOCKER_HOSTenv varmrq1911 commentedon Aug 21, 2026
this already works — @kaysond was right. the agent builds its client with
client.NewEnvClient(), which readsDOCKER_HOST,DOCKER_API_VERSION,DOCKER_CERT_PATHandDOCKER_TLS_VERIFYfrom the env.so
DOCKER_HOST=tcp://proxy:2375(and drop the socket mount) works today, no code change. the proxy needs to allow containers-list, container-stats, events and logs. it was just never documented — #20 doesn't cover it, so i'll add it to the readme parameters list.