Is there a way to tag a previous layer in a docker image or revert a commit?
<p>Let's say there is a docker image, someone makes changes to it and then pushes it up to a docker repository. I then pull down the image. Is there a way to then take that image and run a container from a previous layer? Run the version before the changes were made.</p>

<p>If I run docker history it will look something like this:</p>

<pre><code>docker history imagename:tag
IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
3e23a5875458        8 days ago          /bin/sh -c #(nop) ENV LC_ALL=C.UTF-8            0 B
&lt;missing&gt;           8 days ago          /bin/sh -c dpkg-reconfigure locales &amp;&amp;    loc   1.245 MB
&lt;missing&gt;           8 days ago          /bin/sh -c apt-get update &amp;&amp; apt-get install    338.3 MB
&lt;missing&gt;           6 weeks ago         /bin/sh -c #(nop) ADD jessie.tar.xz in /        121 MB
&lt;missing&gt;           6 weeks ago         /bin/sh -c #(nop) MAINTAINER ssss &lt;ad   0 B
&lt;missing&gt;           9 months ago                                                        0 B   
</code></pre>

<p>It seems as if I could run an earlier version if I figure out a way to somehow tag or identify previous layers of the image.</p>