Last active
February 15, 2016 13:39
-
-
Save ypereirareis/f59e6304cfd156792730 to your computer and use it in GitHub Desktop.
Docker image size optimization INIT
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
FROM ubuntu:14.04 | |
MAINTAINER Yannick PEREIRA-REIS <[email protected]> |
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 build -t img_size_optim . | |
Sending build context to Docker daemon 2.048 kB | |
Step 1 : FROM ubuntu:14.04 | |
---> 6d4946999d4f | |
Step 2 : MAINTAINER Yannick PEREIRA-REIS <[email protected]> | |
---> Running in de8fbb56d363 | |
---> 0e898caf0cef | |
Removing intermediate container de8fbb56d363 | |
Successfully built 0e898caf0cef | |
$ docker images | grep img_size_optim | |
img_size_optim latest 0e898caf0cef 11 seconds ago 188.3 MB | |
$ docker history 0e898caf0cef | |
IMAGE CREATED CREATED BY SIZE COMMENT | |
0e898caf0cef 2 minutes ago /bin/sh -c #(nop) MAINTAINER Yannick PEREIRA- 0 B | |
6d4946999d4f 8 months ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0 B | |
9fd3c8c9af32 8 months ago /bin/sh -c sed -i 's/^#\s*\(deb.*universe\)$/ 1.895 kB | |
435050075b3f 8 months ago /bin/sh -c echo '#!/bin/sh' > /usr/sbin/polic 194.5 kB | |
428b411c28f0 8 months ago /bin/sh -c #(nop) ADD file:b3447f4503091bb6bb 188.1 MB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment