Created
July 14, 2017 15:26
-
-
Save jDmacD/b2d8ddda7b91b7e40e0f9bb9afe19894 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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