mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
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:
@@ -17,8 +17,7 @@ Here's the difference:
|
||||
image. Most Dockerfiles start from a parent image, rather than a base image.
|
||||
However, the terms are sometimes used interchangeably.
|
||||
|
||||
- A [base image](/glossary.md?term=base%20image) either has no `FROM` line
|
||||
in its Dockerfile, or has `FROM scratch`.
|
||||
- A [base image](/glossary.md?term=base%20image) has `FROM scratch` in its Dockerfile.
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user