aboutsummaryrefslogtreecommitdiff
path: root/kolla/image
diff options
context:
space:
mode:
authorDr. Jens Harbott <harbott@osism.tech>2022-08-22 14:15:02 +0200
committerDr. Jens Harbott <harbott@osism.tech>2022-08-22 14:15:02 +0200
commit0fc8712cace61aee19335951409068cef8009dba (patch)
tree4af76674cb1b9d517daab96e9ebf49bc5750dfeb /kolla/image
parent3e5369db541c60df6d5cddccc20b04f50a3d45ad (diff)
downloadkolla-0fc8712cace61aee19335951409068cef8009dba.tar.gz
kolla-0fc8712cace61aee19335951409068cef8009dba.zip
Bump minimum docker-py version
With version 6.0.0 of the docker python module, their implementation of versioning has changed, making our check for old versions fail. Since version 3.0.0 is from 2018, we should be safe to assume that as a minimum version though, so we can just get rid of the special handling of older versions. Change-Id: I077b7b5acf2c1f9beb6da06d3555e2ebe30831d1
Diffstat (limited to 'kolla/image')
-rwxr-xr-xkolla/image/build.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py
index 92a3f3d31..546404ab5 100755
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -28,7 +28,6 @@ import tempfile
import threading
import time
-from distutils.version import StrictVersion
import docker
from enum import Enum
import git
@@ -264,12 +263,6 @@ class PushTask(DockerTask):
def push_image(self, image):
kwargs = dict(stream=True, decode=True)
- # Since docker 3.0.0, the argument of 'insecure_registry' is removed.
- # To be compatible, set 'insecure_registry=True' for old releases.
- dc_running_ver = StrictVersion(docker.version)
- if dc_running_ver < StrictVersion('3.0.0'):
- kwargs['insecure_registry'] = True
-
for response in self.dc.push(image.canonical_name, **kwargs):
if 'stream' in response:
self.logger.info(response['stream'])