import docker client = docker.from_env() images = client.images.list() for image in images: print(image.tags)
import docker client = docker.from_env() container = client.containers.create( image='ubuntu', command='echo Hello, World!' ) container.start() print(container.logs())The package library used in this example is the `docker` library.