import os
import datetime
from docker import Client
cli = Client(base_url='unix://var/run/docker.sock')
containers = cli.containers()
for container in range(len(containers)):
for key in containers[container]:
print(containers[container][key])
Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.
A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!
On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.
Top comments (0)