Skip to content

Instantly share code, notes, and snippets.

@ypereirareis
Last active February 15, 2016 13:39
Show Gist options
  • Save ypereirareis/f59e6304cfd156792730 to your computer and use it in GitHub Desktop.
Save ypereirareis/f59e6304cfd156792730 to your computer and use it in GitHub Desktop.
Docker image size optimization INIT
FROM ubuntu:14.04
MAINTAINER Yannick PEREIRA-REIS <[email protected]>
$ 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