From e8d823d66bccf807022d2112a20e8638757e98ce Mon Sep 17 00:00:00 2001 From: Martynas Pumputis Date: Thu, 28 Jul 2016 12:28:33 +0100 Subject: [PATCH] Do not fail launching the proxy if unable to detect dockerd --- weave | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/weave b/weave index a5ee0746..d829fe16 100755 --- a/weave +++ b/weave @@ -1480,11 +1480,12 @@ proxy_args() { if [ -z "$PROXY_TLS_ENABLED" -a -z "$PROXY_TLS_DETECTION_DISABLED" ] ; then if ! DOCKER_TLS_ARGS=$(util_op docker-tls-args) ; then - echo "Unable to auto-detect proxy TLS configuration; you must launch the proxy with" >&2 - echo "'weave launch-proxy' and supply '--no-detect-tls' or TLS options." >&2 - exit 1 + echo -n "Warning: unable to detect proxy TLS configuration. To enable TLS, " >&2 + echo -n "launch the proxy with 'weave launch-proxy' and supply TLS options. " >&2 + echo "To suppress this warning, supply the '--no-detect-tls' option." >&2 + else + proxy_parse_args $DOCKER_TLS_ARGS fi - proxy_parse_args $DOCKER_TLS_ARGS fi if [ -z "$PROXY_HOST" ] ; then case "$DOCKER_CLIENT_HOST" in