Don't query state in docker discovery
As it's not supported on some older docker, and not used anyway
This commit is contained in:
parent
8140dcb7cf
commit
80bfaee714
|
@ -31,8 +31,7 @@ if ($what =~ m/^containers?/){
|
|||
$format = '{' .
|
||||
'"{#DOCKER_CONTAINER_ID}":"{{ .ID }}",' .
|
||||
'"{#DOCKER_CONTAINER_IMAGE}": "{{ .Image }}",' .
|
||||
'"{#DOCKER_CONTAINER_NAME}":"{{ .Names }}",' .
|
||||
'"{#DOCKER_CONTAINER_STATE}": "{{ .State }}"' .
|
||||
'"{#DOCKER_CONTAINER_NAME}":"{{ .Names }}"' .
|
||||
'}';
|
||||
$cmd = "$docker container list --all --format '$format'";
|
||||
} elsif ($what =~ m/^networks?/){
|
||||
|
|
Loading…
Reference in New Issue