Skip to content

Instantly share code, notes, and snippets.

@mredar
Created October 20, 2014 23:53
Show Gist options
  • Save mredar/a984ef16608bbcf7233f to your computer and use it in GitHub Desktop.
Save mredar/a984ef16608bbcf7233f to your computer and use it in GitHub Desktop.
nsenter to attach to running docker
PID==$(docker inspect --format '{{.State.Pid}}' my_container_id)
nsenter --mount --uts --ipc --net --pid --target $PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment