dovetail tool: remove old image when pulling new one successfully 83/26583/3
authorxudan <xudan16@huawei.com>
Thu, 29 Dec 2016 07:31:32 +0000 (07:31 +0000)
committerxudan <xudan16@huawei.com>
Fri, 6 Jan 2017 02:44:38 +0000 (02:44 +0000)
commit16a21a191c86a87d5e84dab24bde8585386ee8c3
tree5f4bb9e3ca409318c28da5cc1ce4efd99680e0ce
parentd8a21638b012c5036ac1303d5fe055a73d8ff1b7
dovetail tool: remove old image when pulling new one successfully

1. split function pull_image into four functions, get_image_id, pull_image_only,
   remove_image and pull_image.
2. after pulling new version of the image, remove the old one with tag <none>.

JIRA: DOVETAIL-171

Change-Id: I2d2a9d6a8bc2308d434d0a3c76aa24bf5b39bfd7
Signed-off-by: xudan <xudan16@huawei.com>
dovetail/container.py