Skip to content

Instantly share code, notes, and snippets.

@jDmacD
Created July 14, 2017 15:26
Show Gist options
  • Save jDmacD/b2d8ddda7b91b7e40e0f9bb9afe19894 to your computer and use it in GitHub Desktop.
Save jDmacD/b2d8ddda7b91b7e40e0f9bb9afe19894 to your computer and use it in GitHub Desktop.
import docker, sys
client = docker.from_env()
container_name = sys.argv[1]
container = client.containers.get(container_name)
print(container.status)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment