Created
June 5, 2015 08:07
-
-
Save jclosure/b2bcf0686739ad6b79df to your computer and use it in GitHub Desktop.
How to revert a docker container to a previous commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker history imagename | |
IMAGE CREATED CREATED BY SIZE | |
f770fc671f11 12 seconds ago apt-get install -y curl 21.3 MB | |
28445c70c2b3 39 seconds ago apt-get install ping 11.57 MB | |
8dbd9e392a96 7 months ago 131.5 MB | |
$ docker tag 2844 imagename # <-- that's the secret right there | |
$ docker history imagename | |
IMAGE CREATED CREATED BY SIZE | |
28445c70c2b3 56 seconds ago apt-get install ping 11.57 MB | |
8dbd9e392a96 7 months ago 131.5 MB |
You are a lifesaver
Thanks mate. Saved my day!!
Works fine
Works great, I wish the official docs were this clear
amazing! thanks!
Great. It works!
Hey what to right after docker tag previous image and then?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
works fine