Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Conclusions

  • The multi-layered image is even slightly smaller than the mono-layered one - so multi-layered image is even better when you download it once
  • Downloading the image regularly by the users is way better in case of multi-layered image - for simulated user it's , downloading airflow image twice a week it is:  5.7 GB GB  (multi-layered) vs. 16.15 image GB (mono-layered) downloads over the course of 8 weeks.


Sources for calculation

Mono-layered image:

docker history potiuk/airflow-monodocker:latest
IMAGE CREATED CREATED BY SIZE COMMENT
711f22148f14 28 minutes ago /bin/sh -c #(nop) CMD ["--help"] 0B
1106894d8e9c 28 minutes ago /bin/sh -c #(nop) ENTRYPOINT ["/entrypoint.… 0B
a65bc0db5cdb 28 minutes ago /bin/sh -c #(nop) COPY file:22d6c0f397f65528… 907B
2f96d1ca713e 28 minutes ago |5 AIRFLOW_DEPS=all AIRFLOW_HOME=/usr/local/… 0B
63056a97131b 28 minutes ago /bin/sh -c #(nop) WORKDIR /usr/local/airflow 0B
79d60b1912b3 28 minutes ago |5 AIRFLOW_DEPS=all AIRFLOW_HOME=/usr/local/… 763MB
b23c2a77ce0f 37 minutes ago /bin/sh -c #(nop) WORKDIR /opt/airflow 0B
23a64ce057ce 37 minutes ago /bin/sh -c #(nop) ARG APT_DEPS=freetds-dev … 0B
4a79499a26c0 37 minutes ago /bin/sh -c #(nop) ARG buildDeps=freetds-dev… 0B
8ac987ed4125 37 minutes ago /bin/sh -c #(nop) ARG PYTHON_DEPS= 0B
327f2bc94551 37 minutes ago /bin/sh -c #(nop) ARG AIRFLOW_DEPS=all 0B
b387dffb0fec 37 minutes ago /bin/sh -c #(nop) ARG AIRFLOW_HOME=/usr/loc… 0B
2ce682937e1d 37 minutes ago /bin/sh -c #(nop) COPY dir:b90f1d3f3c97b3b89… 237MB
81f4c012cf1f 2 weeks ago /bin/sh -c #(nop) CMD ["python3"] 0B
<missing> 2 weeks ago /bin/sh -c set -ex; savedAptMark="$(apt-ma… 7.13MB
<missing> 2 weeks ago /bin/sh -c #(nop) ENV PYTHON_PIP_VERSION=18… 0B
<missing> 2 weeks ago /bin/sh -c cd /usr/local/bin && ln -s idle3… 32B
<missing> 2 weeks ago /bin/sh -c set -ex && savedAptMark="$(apt-… 69.2MB
<missing> 2 weeks ago /bin/sh -c #(nop) ENV PYTHON_VERSION=3.6.8 0B
<missing> 2 weeks ago /bin/sh -c #(nop) ENV GPG_KEY=0D96DF4D4110E… 0B
<missing> 2 weeks ago /bin/sh -c apt-get update && apt-get install… 6.48MB
<missing> 2 weeks ago /bin/sh -c #(nop) ENV LANG=C.UTF-8 0B
<missing> 2 weeks ago /bin/sh -c #(nop) ENV PATH=/usr/local/bin:/… 0B
<missing> 2 weeks ago /bin/sh -c #(nop) CMD ["bash"] 0B
<missing> 2 weeks ago /bin/sh -c #(nop) ADD file:6d6f6f123e45697d3… 55.3MB


Multi-layered image:


docker history potiuk/airflow-layereddocker:latest
IMAGE CREATED CREATED BY SIZE COMMENT
964458a837c4 13 minutes ago /bin/bash -c #(nop) CMD ["--help"] 0B
29934849ea6d 13 minutes ago /bin/bash -c #(nop) ENTRYPOINT ["/entrypoin… 0B
25aa1e37139b 13 minutes ago /bin/bash -c #(nop) COPY file:22d6c0f397f655… 907B
303f291f5588 13 minutes ago |4 ADDITIONAL_PYTHON_DEPS= AIRFLOW_EXTRAS=al… 0B
2c9545351f2b 13 minutes ago /bin/bash -c #(nop) ARG ADDITIONAL_PYTHON_D… 0B
5c51286365ff 13 minutes ago |3 AIRFLOW_EXTRAS=all AIRFLOW_HOME=/usr/loca… 147kB
0956060680a5 13 minutes ago |3 AIRFLOW_EXTRAS=all AIRFLOW_HOME=/usr/loca… 6.04MB
a448582458c1 13 minutes ago /bin/bash -c #(nop) COPY dir:1c24e93ef026646… 176MB
19a926abcdaf 13 minutes ago |3 AIRFLOW_EXTRAS=all AIRFLOW_HOME=/usr/loca… 523MB
e6fdf3881500 18 minutes ago /bin/bash -c #(nop) WORKDIR /opt/airflow 0B
351c1ae84700 18 minutes ago /bin/bash -c #(nop) ENV FORCE_REINSTALL_AIR… 0B
589a353b806b 18 minutes ago /bin/bash -c #(nop) COPY file:143db2e76b8f16… 1.26kB
[AIRFLOW-3718] Multi-layered version of the official docker image
8d6e37aae712 18 minutes ago /bin/bash -c #(nop) COPY file:590340f7066102… 3.04kB
4052dc91ecb1 18 minutes ago /bin/bash -c #(nop) COPY file:3e78814fb55a47… 838B
f6fd5aa7f53d 18 minutes ago /bin/bash -c #(nop) COPY file:53d0bc9002b31a… 29.6kB
53a367472930 18 minutes ago /bin/bash -c #(nop) COPY multi:8bb5ed331b460… 14.2kB
7d28e9f76918 18 minutes ago /bin/bash -c #(nop) ENV SLUGIFY_USES_TEXT_U… 0B
3c5cebbef413 18 minutes ago /bin/bash -c #(nop) ENV CASS_DRIVER_NO_CYTH… 0B
1e011ecb668f 18 minutes ago /bin/bash -c #(nop) ENV CASS_DRIVER_BUILD_C… 0B
a30c11b58de1 18 minutes ago /bin/bash -c #(nop) ARG CASS_DRIVER_NO_CYTH… 0B
0d44f2da664b 26 minutes ago /bin/bash -c #(nop) ENV FORCE_REINSTALL_ALL… 0B
fd9c1b1ebf05 26 minutes ago /bin/bash -c #(nop) ARG AIRFLOW_EXTRAS=all 0B
3845cd179711 26 minutes ago |1 AIRFLOW_HOME=/usr/local/airflow /bin/bash… 0B
9b190f1b4d13 26 minutes ago /bin/bash -c #(nop) ARG AIRFLOW_HOME=/usr/l… 0B
c4870f9907a5 4 days ago /bin/bash -c apt-get update && apt-get i… 155MB
e2249492ef25 4 days ago /bin/bash -c apt-get update && apt-get i… 118MB
34bf4afb2b2c 4 days ago /bin/bash -c #(nop) ENV FORCE_REINSTALL_APT… 0B
fa2782294cce 4 days ago /bin/bash -c #(nop) ENV DEBIAN_FRONTEND=non… 0B
435a88072613 4 days ago /bin/bash -c #(nop) SHELL [/bin/bash -c] 0B
81f4c012cf1f 2 weeks ago /bin/sh -c #(nop) CMD ["python3"] 0B
<missing> 2 weeks ago /bin/sh -c set -ex; savedAptMark="$(apt-ma… 7.13MB
<missing> 2 weeks ago /bin/sh -c #(nop) ENV PYTHON_PIP_VERSION=18… 0B
<missing> 2 weeks ago /bin/sh -c cd /usr/local/bin && ln -s idle3… 32B
<missing> 2 weeks ago /bin/sh -c set -ex && savedAptMark="$(apt-… 69.2MB
<missing> 2 weeks ago /bin/sh -c #(nop) ENV PYTHON_VERSION=3.6.8 0B
<missing> 2 weeks ago /bin/sh -c #(nop) ENV GPG_KEY=0D96DF4D4110E… 0B
<missing> 2 weeks ago /bin/sh -c apt-get update && apt-get install… 6.48MB
<missing> 2 weeks ago /bin/sh -c #(nop) ENV LANG=C.UTF-8 0B
<missing> 2 weeks ago /bin/sh -c #(nop) ENV PATH=/usr/local/bin:/… 0B
<missing> 2 weeks ago /bin/sh -c #(nop) CMD ["bash"] 0B
<missing> 2 weeks ago /bin/sh -c #(nop) ADD file:6d6f6f123e45697d3… 55.3MB