mirror of https://github.com/docker/compose.git
Fix docstring for images command
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
90beeaf21c
commit
815a3af6d2
|
@ -484,7 +484,7 @@ class TopLevelCommand(object):
|
||||||
|
|
||||||
def images(self, options):
|
def images(self, options):
|
||||||
"""
|
"""
|
||||||
List images.
|
List images used by the created containers.
|
||||||
Usage: images [options] [SERVICE...]
|
Usage: images [options] [SERVICE...]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
@ -510,7 +510,7 @@ class TopLevelCommand(object):
|
||||||
image_config = container.image_config
|
image_config = container.image_config
|
||||||
repo_tags = str.split(str(image_config['RepoTags'][0]), ':')
|
repo_tags = str.split(str(image_config['RepoTags'][0]), ':')
|
||||||
image_id = str.split(str(container.image), ':')[1][0:12]
|
image_id = str.split(str(container.image), ':')[1][0:12]
|
||||||
size = round(int(image_config['Size'])/float(1 << 20), 1)
|
size = round(int(image_config['Size']) / float(1 << 20), 1)
|
||||||
rows.append([
|
rows.append([
|
||||||
repo_tags[0],
|
repo_tags[0],
|
||||||
repo_tags[1],
|
repo_tags[1],
|
||||||
|
|
Loading…
Reference in New Issue