Has anyone been able to get glances to show container metrics when going through docker socket proxy?
I tried enabling every flag listed on the socket proxy GitHub but glances still won’t show containers. It reports them just fine if I go directly to the socket.
Thanks!
Since I was feeling bad for giving the wrong answer in another comment, I spin up a docker socket proxy and did some test :)
The main points are:
Here’s a sample compose file, adjust to your needs. Please note that the tcp socket is not exposed outside of
admin_net
network and that glances does not have access to thedocker.sock
socket:OMG…Instead of the env variable DOCKER_HOST: tcp://dockerproxy:2375 I had hostname: tcp://dockerproxy:2375 in there which only changed the website title. So dumb. Everything else was the same as your example.
Thanks for the help!