Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Created July 9, 2014 02:43
Show Gist options
  • Save yuuichi-fujioka/176902ffb3bcd4b0b7fb to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/176902ffb3bcd4b0b7fb to your computer and use it in GitHub Desktop.
login to docker container with nsinit
#!/bin/bash
# this requires super user
cd /var/lib/docker/execdriver/native/${container_id}
nsinit exec /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment