Skip to content

Instantly share code, notes, and snippets.

@feniix
Created October 29, 2014 23:12
Show Gist options
  • Save feniix/c71707bee5fa4499b7bf to your computer and use it in GitHub Desktop.
Save feniix/c71707bee5fa4499b7bf to your computer and use it in GitHub Desktop.
docker-enter () {
vagrant ssh abed1ef -- '[ -f /var/lib/boot2docker/nsenter ] || docker run --rm -v /var/lib/boot2docker/:/target jpetazzo/nsenter'
vagrant ssh abed1ef -- -t sudo /var/lib/boot2docker/docker-enter "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment