1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/graph
Josh Hawn 8936789919 Make FROM scratch a special cased 'no-base' spec
There has been a lot of discussion (issues 4242 and 5262) about making
`FROM scratch` either a special case or making `FROM` optional, implying
starting from an empty file system.

This patch makes the build command `FROM scratch` special cased from now on
and if used does not pull/set the the initial layer of the build to the ancient
image ID (511136ea..) but instead marks the build as having no base image. The
next command in the dockerfile will create an image with a parent image ID of "".
This means every image ever can now use one fewer layer!

This also makes the image name `scratch` a reserved name by the TagStore. You
will not be able to tag an image with this name from now on. If any users
currently have an image tagged as `scratch`, they will still be able to use that
image, but will not be able to tag a new image with that name.

Goodbye '511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158',
it was nice knowing you.

Fixes #4242

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2014-12-18 14:03:38 -08:00
..
export.go fix missing layers when exporting a full repository 2014-11-14 14:41:35 +01:00
graph.go Improve message when pushing a non-existent image 2014-12-11 17:57:23 +00:00
history.go Wrap strings that could look like ints in quotes 2014-12-15 05:10:49 -08:00
import.go Add import/pull events to the stream 2014-11-06 12:12:41 -08:00
list.go Wrap strings that could look like ints in quotes 2014-12-15 05:10:49 -08:00
load.go validate image ID properly & before load 2014-12-11 16:29:27 -05:00
load_unsupported.go graph/load: add build tags to fix make cross 2014-11-25 02:06:45 +02:00
MAINTAINERS Add maintainers to daemon/ and graph/ 2014-08-06 10:29:15 +00:00
pools_test.go don't call reexec.Init from chrootarchive 2014-11-25 01:03:40 +02:00
pull.go registry: refactor registry.IsSecure calls into registry.NewEndpoint 2014-11-12 20:34:03 -06:00
push.go Chnage LookupRemoteImage to return error 2014-12-16 16:23:19 -08:00
service.go Wrap strings that could look like ints in quotes 2014-12-15 05:10:49 -08:00
tag.go Move "image_tag" and "tag" to graph/tag.go 2014-08-06 17:18:51 -04:00
tags.go Make FROM scratch a special cased 'no-base' spec 2014-12-18 14:03:38 -08:00
tags_unit_test.go validate image ID properly & before load 2014-12-11 16:29:27 -05:00
viz.go Move "viz" to graph/viz.go 2014-08-06 17:18:50 -04:00