Skip to content

Instantly share code, notes, and snippets.

@mckaydavis
Created June 22, 2014 18:34
Show Gist options
  • Save mckaydavis/05dc56bcb9ee428346fc to your computer and use it in GitHub Desktop.
Save mckaydavis/05dc56bcb9ee428346fc to your computer and use it in GitHub Desktop.
One-liner to start bash shell in most recently modified docker container image
docker run -i -t $(docker images | head -2 | tail -1 | tr -s \ | cut -d\ -f3) /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment