Created
June 16, 2014 20:09
-
-
Save jhaubrich/c1bc34940bec62e328ac to your computer and use it in GitHub Desktop.
This is what happens with you replace a docker image with a new image of the same name. It keeps the old image, moves the tag to point at the new image, and the running container continues to point at the old image.
This file contains hidden or 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
MCP · (master) ⟩ docker images; docker ps ~/s/MCP | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
sog/mcp latest 37a694e7ca0e 3 weeks ago 489 MB | |
<none> <none> 3560e045ada2 7 weeks ago 489 MB | |
<none> <none> 5affacbae672 7 weeks ago 489 MB | |
<none> <none> bba7aff6f597 7 weeks ago 489 MB | |
<none> <none> 6e67e654bb4a 7 weeks ago 489 MB | |
<none> <none> 2cd914b12ec9 7 weeks ago 489 MB | |
<none> <none> eb6d36a5621b 7 weeks ago 489 MB | |
<none> <none> bc5d6787c2c8 7 weeks ago 489 MB | |
<none> <none> a0a9309fbed5 7 weeks ago 489 MB | |
sog/redis latest 2e841a0ba632 7 weeks ago 268.6 MB | |
ubuntu trusty c1bd2f6276a1 7 weeks ago 266 MB | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
7961c7eae6ce sog/mcp:latest /usr/bin/supervisord 3 weeks ago Up 7 minutes 0.0.0.0:49154->22/tcp, 0.0.0.0:49155->8000/tcp mcp | |
ce3430472164 sog/redis:latest /usr/bin/redis-serve 3 weeks ago Up 7 minutes 0.0.0.0:49153->6379/tcp mcp/redis,mcp-redis | |
MCP · (master) ⟩ docker build -t sog/mcp . ~/s/MCP | |
Uploading context 3.052 MB | |
Uploading context | |
Step 0 : FROM ubuntu:trusty | |
---> c1bd2f6276a1 | |
Step 1 : MAINTAINER Jesse Haubrich <[email protected]> | |
---> Using cache | |
---> af4f69894099 | |
# <snip> | |
Step 18 : CMD ["/usr/bin/supervisord"] | |
---> Running in e5ece7048d40 | |
---> d991040358fb | |
Successfully built d991040358fb | |
Removing intermediate container e83c33c14e64 | |
Removing intermediate container 1fb6f6c663d5 | |
Removing intermediate container 4a0230c66184 | |
Removing intermediate container 02581d29e218 | |
Removing intermediate container c5e50e78ca8e | |
Removing intermediate container b982643c9656 | |
Removing intermediate container 619bf25c3326 | |
Removing intermediate container e5ece7048d40 | |
Removing intermediate container 6cd8eb0f25b4 | |
Removing intermediate container 8d942aee4279 | |
Removing intermediate container efd8da0187a6 | |
Removing intermediate container 1599d1516169 | |
Removing intermediate container 0b16f904cd86 | |
Removing intermediate container def3c20e5cd4 | |
MCP · (master) ⟩ docker images; docker ps ~/s/MCP | |
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
sog/mcp latest d991040358fb 8 seconds ago 489.1 MB | |
<none> <none> 37a694e7ca0e 3 weeks ago 489 MB | |
<none> <none> 3560e045ada2 7 weeks ago 489 MB | |
<none> <none> 5affacbae672 7 weeks ago 489 MB | |
<none> <none> bba7aff6f597 7 weeks ago 489 MB | |
<none> <none> 6e67e654bb4a 7 weeks ago 489 MB | |
<none> <none> 2cd914b12ec9 7 weeks ago 489 MB | |
<none> <none> eb6d36a5621b 7 weeks ago 489 MB | |
<none> <none> bc5d6787c2c8 7 weeks ago 489 MB | |
<none> <none> a0a9309fbed5 7 weeks ago 489 MB | |
sog/redis latest 2e841a0ba632 7 weeks ago 268.6 MB | |
ubuntu trusty c1bd2f6276a1 7 weeks ago 266 MB | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
7961c7eae6ce 37a694e7ca0e /usr/bin/supervisord 3 weeks ago Up 9 minutes 0.0.0.0:49154->22/tcp, 0.0.0.0:49155->8000/tcp mcp | |
ce3430472164 sog/redis:latest /usr/bin/redis-serve 3 weeks ago Up 9 minutes 0.0.0.0:49153->6379/tcp mcp/redis,mcp-redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment