Skip to content

Instantly share code, notes, and snippets.

@ipan
Last active January 14, 2018 17:14
Show Gist options
  • Save ipan/89bbeee10a02f438b6a18b918cfe95bc to your computer and use it in GitHub Desktop.
Save ipan/89bbeee10a02f438b6a18b918cfe95bc to your computer and use it in GitHub Desktop.
"""
example dockerfile for longprocess:
https://github.com/ipan/dockerfiles/tree/master/longprocess
"""
import docker
client = docker.from_env()
lp = client.containers.run("longprocess", "/src/run.sh 5", detach=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment