How kaniko has changed since Google's last release, v1.24.0.
Performance
kaniko rebuilds an unchanged project 8× faster than Google's v1.24.0 and only 2.7 s slower than BuildKit's v0.35.0.
buildbench's ex01, as in kaniko and BuildKit: 8 years later: cold starts from an empty cache, unchanged builds the same inputs again, edit changes a file one of the two builder stages copies. Every release since May 2025 at its release date, each builder in its best configuration. Setup and raw results: kaniko-buildbench.
Dockerfile support
Since Google's version was archived, kaniko has added 12 Dockerfile features and now supports 57% of the reference.
| kaniko | 24 | 25 | 26 | 27 | 28 | 29 | next |
|---|---|---|---|---|---|---|---|
| Parser directives0% | |||||||
| # syntax= | |||||||
| |||||||
| # escape= | |||||||
| |||||||
| # check= | |||||||
| |||||||
| Variable substitution100% | |||||||
| ${var} substitution | |||||||
| ${var:-word} | |||||||
| ${var:+word} | |||||||
| ${var#pattern} | |||||||
| ${var%pattern} | |||||||
| ${var/pattern/replacement} | |||||||
| \$ escaping | |||||||
| FROM50% | |||||||
| FROM AS | |||||||
| FROM --platform | |||||||
| |||||||
| RUN54% | |||||||
| exec form | |||||||
| shell form | |||||||
| RUN --device | |||||||
| |||||||
| RUN --mount=type=bind | |||||||
| |||||||
| RUN --mount=type=cache | |||||||
| |||||||
| RUN --mount=type=tmpfs | |||||||
| |||||||
| RUN --mount=type=secret | |||||||
| |||||||
| RUN --mount=type=ssh | |||||||
| |||||||
| RUN --network=default | |||||||
| RUN --network=none | |||||||
| |||||||
| RUN --network=host | |||||||
| |||||||
| RUN --security | |||||||
| |||||||
| here-documents | |||||||
| |||||||
| kaniko | 24 | 25 | 26 | 27 | 28 | 29 | next |
|---|---|---|---|---|---|---|---|
| ADD40% | |||||||
| ADD local tar archive | |||||||
| |||||||
| ADD URL | |||||||
| |||||||
| ADD Git repository | |||||||
| |||||||
| ADD --keep-git-dir | |||||||
| |||||||
| ADD --checksum | |||||||
| |||||||
| ADD --chmod | |||||||
| |||||||
| ADD --chown | |||||||
| |||||||
| ADD --link | |||||||
| |||||||
| ADD --unpack | |||||||
| |||||||
| ADD --exclude | |||||||
| |||||||
| COPY29% | |||||||
| COPY --from | |||||||
| |||||||
| COPY --chmod | |||||||
| |||||||
| COPY --chown | |||||||
| |||||||
| COPY --link | |||||||
| |||||||
| COPY --parents | |||||||
| |||||||
| COPY --exclude | |||||||
| |||||||
| .dockerignore | |||||||
| ARG67% | |||||||
| ARG | |||||||
| |||||||
| proxy ARGs | |||||||
| |||||||
| platform ARGs | |||||||
| |||||||
| Other instructions77% | |||||||
| LABEL | |||||||
| MAINTAINER | |||||||
| |||||||
| EXPOSE | |||||||
| ENV | |||||||
| VOLUME | |||||||
| |||||||
| USER | |||||||
| |||||||
| WORKDIR | |||||||
| ONBUILD | |||||||
| |||||||
| SHELL | |||||||
| CMD | |||||||
| ENTRYPOINT | |||||||
| HEALTHCHECK | |||||||
| |||||||
| STOPSIGNAL | |||||||
supported partial not supportednext main with the Preview profile▸ notes
One row per instruction option of the Dockerfile 1.28 reference, rated by what it does by default.
Footprint
kaniko is 40% the size of Google's v1.24.0 and we cut 37% of its dependency code whilst growing our own by 9k lines.
The compressed linux/amd64 executor image, and the Go compiled into the executor binary without tests, from dependencies and from kaniko itself.