websoft9/cli/test.py
chendelin1982 dd66f49cc3 docker sdk
2021-10-16 18:57:11 +08:00

5 lines
No EOL
94 B
Python

import docker
client = docker.from_env()
for image in client.images.list():
print(image.id)