Преглед изворни кода

Bump docker-py

This should fix https problems when running on
remote daemon

Signed-off-by: Ulysses Souza <[email protected]>
Ulysses Souza пре 5 година
родитељ
комит
3f0a7fe3ee
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      compose/cli/docker_client.py
  2. 1 1
      requirements.txt

+ 2 - 2
compose/cli/docker_client.py

@@ -31,7 +31,7 @@ def default_cert_path():
 
 def make_context(host, options, environment):
     tls = tls_config_from_options(options, environment)
-    ctx = Context("compose", host=host)
+    ctx = Context("compose", host=host, tls=tls.verify if tls else False)
     if tls:
         ctx.set_endpoint("docker", host, tls, skip_tls_verify=not tls.verify)
     return ctx
@@ -138,7 +138,7 @@ def docker_client(environment, version=None, context=None, tls_version=None):
         tls = kwargs.get("tls", None)
         verify = False if not tls else tls.verify
         if host:
-            context = Context("compose", host=host)
+            context = Context("compose", host=host, tls=verify)
         else:
             context = ContextAPI.get_current_context()
         if tls:

+ 1 - 1
requirements.txt

@@ -5,7 +5,7 @@ certifi==2020.4.5.1
 chardet==3.0.4
 colorama==0.4.3; sys_platform == 'win32'
 distro==1.5.0
-docker==4.2.0
+docker==4.2.1
 docker-pycreds==0.4.0
 dockerpty==0.4.1
 docopt==0.6.2