Skip to content

Instantly share code, notes, and snippets.

@beldpro-ci
Created June 25, 2017 17:40
Show Gist options
  • Save beldpro-ci/917488870bb2b9cc8d7a8143042b0784 to your computer and use it in GitHub Desktop.
Save beldpro-ci/917488870bb2b9cc8d7a8143042b0784 to your computer and use it in GitHub Desktop.
docker run \
--rm \ # remove the container after we run it
-it \ # add a tty and start it w/ interactive mode
--privileged \ # grant all permissions to the container
--pid=host \ # share the host PID space
justincormack/nsenter1 \ # magic 🎩
/bin/sh # start /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment