You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this already works — @kaysond was right. the agent builds its client with client.NewEnvClient(), which reads DOCKER_HOST, DOCKER_API_VERSION, DOCKER_CERT_PATH and DOCKER_TLS_VERIFY from 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.
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.