How to roll docker back to previous image?


Maticks

Recommended Posts

Does anyone know how to roll a docker image back to the previous image.

MedUSA is broken since i upgraded with my primary search provider.

I don't know the command to issue to roll it back to the previous image.

I am guessing the update 6 weeks ago is what i am looking for.

 

root@Vault:~# docker images | grep med
binhex/arch-medusa        latest              d568ed9bc151        2 days ago          1.21GB
 

root@Vault:~# docker history binhex/arch-medusa
IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
d568ed9bc151        2 days ago          /bin/sh -c #(nop)  CMD ["/bin/bash" "/root...   0B
<missing>           2 days ago          /bin/sh -c #(nop)  EXPOSE 8081                  0B
<missing>           2 days ago          /bin/sh -c #(nop)  VOLUME [/media]              0B
<missing>           2 days ago          /bin/sh -c #(nop)  VOLUME [/data]               0B
<missing>           2 days ago          /bin/sh -c #(nop)  VOLUME [/config]             0B
<missing>           2 days ago          /bin/sh -c chmod +x /root/*.sh &&  /bin/ba...   433MB
<missing>           2 days ago          /bin/sh -c #(nop) ADD file:d6bfca174aacbc6...   3.42kB
<missing>           2 days ago          /bin/sh -c #(nop) ADD file:27b5768f10e7465...   138B
<missing>           2 days ago          /bin/sh -c #(nop)  MAINTAINER binhex            0B
<missing>           6 weeks ago         /bin/sh -c #(nop)  ENTRYPOINT ["/usr/bin/t...   0B
<missing>           6 weeks ago         /bin/sh -c #(nop)  ENV LANG=en_GB.UTF-8         0B
<missing>           6 weeks ago         /bin/sh -c #(nop)  ENV TERM=xterm               0B
<missing>           6 weeks ago         /bin/sh -c #(nop)  ENV HOME=/home/nobody        0B
<missing>           6 weeks ago         /bin/sh -c chmod +x /root/*.sh &&  /bin/ba...   454MB
<missing>           6 weeks ago         /bin/sh -c #(nop) ADD file:e44c6fa477194c1...   5.47kB
<missing>           6 weeks ago         /bin/sh -c #(nop) ADD file:0779794b7486108...   197B
<missing>           6 weeks ago         /bin/sh -c #(nop)  MAINTAINER binhex            0B
<missing>           5 months ago        /bin/sh -c #(nop)  CMD ["/bin/bash"]            0B
<missing>           5 months ago        /bootstrap/sh -c /bootstrap/wget -O /boots...   320MB
<missing>           5 months ago        /bootstrap/busybox --install -s /bootstrap      0B
<missing>           5 months ago        /bin/sh -c #(nop) ADD file:e75190138ca60f4...   1.05MB
<missing>           5 months ago        /bin/sh -c #(nop)  MAINTAINER binhex            0B
 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.