Skip to content

Instantly share code, notes, and snippets.

That’s one of the real strengths of Docker: the ability to go back to a previous commit. The secret is simply to docker tag the image you want.
Here’s an example. In this example, I first installed ping, then committed, then installed curl, and committed that. Then I rolled back the image to contain only ping:
$ 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
@clawoflight
clawoflight / vim-cheatcheet.txt
Created February 22, 2018 14:43
Vim Cheatcheet
vim: sw=4 ts=4 et
Normal Mode
====================
General
--------------------
u undo
U undo all changes on last modified line
^r redo
@clawoflight
clawoflight / keybase.md
Created February 24, 2015 21:38
Keybase Verification

Keybase proof

I hereby claim:

  • I am ClawOfLight on github.
  • I am clawoflight (https://keybase.io/clawoflight) on keybase.
  • I have a public key whose fingerprint is 871F 1047 7DB3 DDED 5FC4 47B2 26C7 E577 EF96 7808

To claim this, I am signing this object: