Skip to content

Instantly share code, notes, and snippets.

@Da-Juan
Created June 4, 2018 11:20
Show Gist options
  • Save Da-Juan/da9714071fa18463d3eb377c94168342 to your computer and use it in GitHub Desktop.
Save Da-Juan/da9714071fa18463d3eb377c94168342 to your computer and use it in GitHub Desktop.
Run bash in background in a Docker image
docker run --name debian9 --hostname debian9 -d debian:9 /bin/bash -c "trap : TERM INT; sleep infinity & wait"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment