dockersetup: warn if http proxy specified without https

You really need to specify these both together since during updates we
will very likely fetch over both HTTP and HTTPS.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2019-01-07 08:45:44 +13:00
parent f50f48cf01
commit 3775efc848

View File

@ -59,6 +59,9 @@ def get_args():
except IndexError:
raise argparse.ArgumentTypeError("http_proxy must be in format http://<myproxy:port>")
if args.http_proxy and not args.https_proxy:
print('WARNING: http proxy specified without https proxy, this is likely to be incorrect')
for entry in args.portmapping.split(','):
if len(entry.split(":")) != 2:
raise argparse.ArgumentTypeError("Port mapping must in the format HOST:CONTAINER. Ex: 8080:80. Multiple mappings should be separated by commas.")