Skip to content

Instantly share code, notes, and snippets.

@gdoteof
Last active August 29, 2015 14:02
Show Gist options
  • Save gdoteof/36c8ddf4650bb7c92a24 to your computer and use it in GitHub Desktop.
Save gdoteof/36c8ddf4650bb7c92a24 to your computer and use it in GitHub Desktop.
get bash shell for latest built docker
LASTDOCKER=`docker ps -l | tail -n1 | awk {'print $1'}` && \
docker commit $LASTDOCKER recent && \
docker run -i -t recent /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment