[proxy] Handle null HostConfigs gracefully in start

This commit is contained in:
Alfonso Acosta authored and Matthias Radestock committed 2015-10-01 11:40:50 +01:00
1 parent 725f99ea4c
commit c24dc6609d
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ docker_api_on() {
data=$4
shift 4
[ -z "$DEBUG" ] || greyly echo "Docker (API) on $host:$DOCKER_PORT: $method $url" >&2
echo -n "$data" | curl -s -X "$method" -H Content-Type:application/json "http://$host:$DOCKER_PORT/v1.15$url" -d @-
echo -n "$data" | curl -s -f -X "$method" -H Content-Type:application/json "http://$host:$DOCKER_PORT/v1.15$url" -d @-
}
proxy() {