Skip to content

Instantly share code, notes, and snippets.

@LiamJolly
Created October 26, 2021 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LiamJolly/dc5e2b69819d656e20e7bc1b59a100a9 to your computer and use it in GitHub Desktop.
Save LiamJolly/dc5e2b69819d656e20e7bc1b59a100a9 to your computer and use it in GitHub Desktop.
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