builder: simplify error generation, and rephrase error/warning
With this change:
echo 'FROM busybox' | DOCKER_BUILDKIT=1 docker build -
ERROR: BuildKit is enabled but the buildx component is missing or broken.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
echo 'FROM busybox' | docker build -
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 2.048kB
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
CrazyMax
parent
4d8e45782b
commit
bce65f0edc
@ -184,12 +184,6 @@ func runBuild(dockerCli command.Cli, options buildOptions) error {
|
||||
remote string
|
||||
)
|
||||
|
||||
if !options.quiet && dockerCli.ServerInfo().OSType != "windows" {
|
||||
_, _ = fmt.Fprint(dockerCli.Err(), `DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
|
||||
|
||||
`)
|
||||
}
|
||||
|
||||
if options.stream {
|
||||
_, _ = fmt.Fprint(dockerCli.Err(), `DEPRECATED: The experimental --stream flag has been removed and the build context
|
||||
will be sent non-streaming. Enable BuildKit instead with DOCKER_BUILDKIT=1
|
||||
|
||||
Reference in New Issue
Block a user