Created
October 26, 2021 14:44
-
-
Save LiamJolly/dc5e2b69819d656e20e7bc1b59a100a9 to your computer and use it in GitHub Desktop.
This file contains 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 | |
def run_container(): | |
client = docker.client.from_env() | |
client.containers.run("busybox:latest", "echo Hello World!", name="tutorial1") | |
if __name__ == "__main__": | |
run_container() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment