From ca4f9cfda580da9a626aa8c2be261e0ccd7cf72c Mon Sep 17 00:00:00 2001 From: Ofer Koren Date: Thu, 24 Sep 2020 14:05:57 +0300 Subject: [PATCH] bug fix on not preserving original container image tag --- pyouroboros/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyouroboros/helpers.py b/pyouroboros/helpers.py index 246afdde..e6d0f95e 100644 --- a/pyouroboros/helpers.py +++ b/pyouroboros/helpers.py @@ -14,7 +14,7 @@ def set_properties(old, new, self_name=None): v for v in old.attrs['Config']['Volumes'].keys() ], 'working_dir': old.attrs['Config']['WorkingDir'], - 'image': new.tags[0], + 'image': old.attrs['Config']['Image'], 'command': old.attrs['Config']['Cmd'], 'host_config': old.attrs['HostConfig'], 'labels': old.attrs['Config']['Labels'],