✨ docker-check-updates: Give container name before trying to inspect it
This commit is contained in:
parent
e943df18b9
commit
7c77737e27
1 changed files with 2 additions and 2 deletions
|
@ -9,10 +9,10 @@ c = docker.APIClient(base_url='unix://var/run/docker.sock')
|
|||
for container in c.containers():
|
||||
name = container['Names'][0]
|
||||
id_ = container['Id']
|
||||
image_id = c.inspect_container(id_)['Image']
|
||||
|
||||
print('-' * 75)
|
||||
print('Container: {}'.format(name))
|
||||
|
||||
image_id = c.inspect_container(id_)['Image']
|
||||
print('Image: {} '.format(image_id))
|
||||
|
||||
# Not using the API here for simplicity (for now)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue