From ce60932717c03c859751f2da320530bb9169387d Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 21 Apr 2015 10:30:38 -0600 Subject: [PATCH] Note that "FROM scratch" is now a special case --- scratch/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scratch/README.md b/scratch/README.md index 8964b641..66d5ea92 100644 --- a/scratch/README.md +++ b/scratch/README.md @@ -1,3 +1,5 @@ # `FROM scratch` This image is most useful in the context of building base images or super minimal images (such as images that contain only a single binary; see [`hello-world`](https://github.com/docker-library/hello-world) for an example). + +As of Docker 1.5.0 (specifically, [`docker/docker#8827`](https://github.com/docker/docker/pull/8827)), `FROM scratch` is a no-op in the `Dockerfile`, and will not create an extra layer in your image (so a previously 2-layer image will now be a 1-layer image instead).