mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-24 19:42:12 +00:00
13 lines
214 B
Python
13 lines
214 B
Python
import docker
|
|
|
|
client = docker.from_env()
|
|
info = client.info()
|
|
images = client.images.list()
|
|
|
|
assert len(images) > 0
|
|
|
|
print('Version:', info['ServerVersion'])
|
|
print('Images:')
|
|
for i in images:
|
|
print(i.tags[0])
|