From 7709bfd28e937697bb8bc96bcf214cd981fc14cd Mon Sep 17 00:00:00 2001 From: William Wernert Date: Thu, 26 Mar 2020 18:47:37 -0400 Subject: [PATCH] [fix] Use v2 of Docker http api Docker no longer exposes the default api path, so we need to use /v2 in our api call --- salt/common/tools/sbin/so-status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-status b/salt/common/tools/sbin/so-status index 551a80fbd..2c55a50ae 100755 --- a/salt/common/tools/sbin/so-status +++ b/salt/common/tools/sbin/so-status @@ -107,7 +107,7 @@ populate_container_lists() { systemctl is-active --quiet docker if [[ $? = 0 ]]; then - mapfile -t docker_raw_list < <(curl -s --unix-socket /var/run/docker.sock http:/containers/json?all=1 \ + mapfile -t docker_raw_list < <(curl -s --unix-socket /var/run/docker.sock http:/v2/containers/json?all=1 \ | jq -c '.[] | { Name: .Names[0], State: .State }' \ | tr -d '/{"}') else