Reword/remove some comments

This commit is contained in:
William Wernert
2021-03-02 10:20:33 -05:00
parent 35f5c7fb4b
commit 0db9991307

View File

@@ -40,10 +40,9 @@ def get_image_version(string) -> str:
def main(quiet): def main(quiet):
client = docker.from_env() client = docker.from_env()
# Get list of non-dangling images
image_list = client.images.list(filters={ 'dangling': False }) image_list = client.images.list(filters={ 'dangling': False })
# Map image objects to flattened list of tags (format: "name:version") # Map list of image objects to flattened list of tags (format: "name:version")
tag_list = list(chain.from_iterable(list(map(lambda x: x.attrs.get('RepoTags'), image_list)))) tag_list = list(chain.from_iterable(list(map(lambda x: x.attrs.get('RepoTags'), image_list))))
# Filter to only SO images (base name begins with "so-") # Filter to only SO images (base name begins with "so-")