Enable use of TCP for docker containers #3297
derekoharrow
started this conversation in
General
Replies: 1 comment
-
|
There is no specific code for Windows version. Under the wood Glances uses Docker from_venv in order to connect to the DOCKER_HOST environment variable should be taken into account. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment, it appears that glances on LINUX can only use docker.sock to expose container information.
This request is to also allow the use of a DOCKER_HOST environment variable that could be set to the TCP/IP API url - e.g. tcp://localhost:2375 or tcp://localhost:2376 for HTTPS.
The rationale is that if the docker engine is restarted, containers such as glances can lose connection to the unix socket and cease receiving information, whereas the TCP/IP API will always work, even following a restart of the docker engine.
I believe this setup is already present in the Windows version of Glances, so shouldn't be hard to add to LINUX too.
Beta Was this translation helpful? Give feedback.
All reactions