diff --git a/data/model/image.py b/data/model/image.py index bd8fc4302..2aae6abbd 100644 --- a/data/model/image.py +++ b/data/model/image.py @@ -191,7 +191,12 @@ def _find_or_link_image(existing_image, repo_obj, username, translations, prefer new_image = Image.create(docker_image_id=existing_image.docker_image_id, repository=repo_obj, storage=copied_storage, - ancestors=new_image_ancestry) + ancestors=new_image_ancestry, + command=existing_image.command, + created=existing_image.created, + comment=existing_image.comment, + aggregate_size=existing_image.aggregate_size) + logger.debug('Storing translation %s -> %s', existing_image.id, new_image.id) translations[existing_image.id] = new_image.id