Updated bullet on FROM instruction. (#7275)

If you try and build an image without a FROM instruction in the Dockerfile, the Docker daemon will throw an error. You must include "FROM scratch" to build a base image.
This commit is contained in:
jamesche75 2019-09-06 05:57:27 -05:00 committed by Usha Mandya
parent ec3da7c84d
commit 17a24ef257
1 changed files with 1 additions and 2 deletions

View File

@ -17,8 +17,7 @@ Here's the difference:
image. Most Dockerfiles start from a parent image, rather than a base image. image. Most Dockerfiles start from a parent image, rather than a base image.
However, the terms are sometimes used interchangeably. However, the terms are sometimes used interchangeably.
- A [base image](/glossary.md?term=base%20image) either has no `FROM` line - A [base image](/glossary.md?term=base%20image) has `FROM scratch` in its Dockerfile.
in its Dockerfile, or has `FROM scratch`.
This topic shows you several ways to create a base image. The specific process This topic shows you several ways to create a base image. The specific process
will depend heavily on the Linux distribution you want to package. We have some will depend heavily on the Linux distribution you want to package. We have some