Skip to content

Instantly share code, notes, and snippets.

@mboersma
Created May 28, 2014 20:16
Show Gist options
  • Save mboersma/34e3890118a0183bd2f1 to your computer and use it in GitHub Desktop.
Save mboersma/34e3890118a0183bd2f1 to your computer and use it in GitHub Desktop.
nsenter script
#!/bin/sh
PID=$(docker inspect --format="{{ .State.Pid }}" $1)
nsenter --pid --uts --mount --ipc --net --target $PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment