Page 2 of 2
Re: check_docker.py is not working
Posted: Wed Nov 25, 2020 5:44 pm
by cdienger
Also, what version of docker is this and what api version? I believe you can get this from the command "docker version". Looking over
https://docs.docker.com/engine/api/version-history/, the filter we try to run may not be a part of the API depending on the version.
Re: check_docker.py is not working
Posted: Mon Nov 30, 2020 8:07 am
by Amit_Alone
Docker Version and Api version are the same i.e. 1.5.5
Re: check_docker.py is not working
Posted: Tue Dec 01, 2020 3:45 pm
by cdienger
I can't find anything on 1.5.5. Run the 'docker version' command to verify. See:
https://docs.docker.com/engine/api/#:~: ... 3A%2019.03.
Re: check_docker.py is not working
Posted: Wed Dec 02, 2020 3:15 am
by Amit_Alone
Below is the o/p got after running docker version.
Code: Select all
Client: Version: 19.03.3
API version: 1.40
Go version: go1.12.10
Git commit: 2355349d-
Built: 10/14/2019 16:41:26
OS/Arch: windows/amd64
Re: check_docker.py is not working
Posted: Wed Dec 02, 2020 4:57 pm
by cdienger
Do you see a health status if you run "docker ps"? If not, then you will need to configure a health check for the containers you want to monitor. See
https://howchoo.com/devops/how-to-add-a ... -container for an example of setting up a health check.