Skip to content

Commit

Permalink
Replace docker version check
Browse files Browse the repository at this point in the history
  • Loading branch information
enterJazz committed Aug 19, 2022
1 parent 9ed4681 commit ab2480b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker_squash/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def _save_image(self, image_id, directory):
try:
image = self.docker.get_image(image_id)

if docker.version_info[0] < 3:
if int(docker.__version__.split('.')[0]) < 3:
# Docker library prior to 3.0.0 returned the requests
# object directly which cold be used to read from
self.log.debug(
Expand Down

0 comments on commit ab2480b

Please sign in to comment.