DockerCLI/e2e
Sebastiaan van Stijn 60d62fb729
cmd/docker: improve error message if BUILDKIT_ENABLED=0
Before this change, the error would suggest installing buildx:

    echo "FROM scratch" | DOCKER_BUILDKIT=0  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/

    ...

However, this error would also be shown if buildx is actually installed,
but disabled through "DOCKER_BUILDKIT=0";

    docker buildx version
    github.com/docker/buildx v0.9.1 ed00243

With this patch, it reports that it's disabled, and how to fix:

    echo "FROM scratch" | DOCKER_BUILDKIT=0  docker build -
    DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
                BuildKit is currently disabled; enabled it by removing the DOCKER_BUILDKIT=0
                environment-variable.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-12-09 13:08:07 +01:00
..
cli-plugins format code with gofumpt 2022-09-30 11:59:11 +02:00
container bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
context cli/command/context: context ls: add ERROR column, and don't fail early 2022-11-28 16:52:02 +01:00
global change TestNewAPIClientFromFlagsWithHttpProxyEnv to an e2e test 2021-07-28 22:33:12 +02:00
image cmd/docker: improve error message if BUILDKIT_ENABLED=0 2022-12-09 13:08:07 +01:00
internal/fixtures format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00
plugin format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00
stack cli: print full command as aliases in usage output 2022-06-28 11:03:30 +02:00
system bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
testdata Add script to regenerate test-certificate fixtures 2020-04-10 16:43:06 +02:00
trust bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-23 00:28:55 +01:00
compose-env.connhelper-ssh.yaml connhelper: add e2e 2018-09-30 10:24:34 +09:00
compose-env.experimental.yaml Make test-e2e run against experimental and non-experimental daemon 2018-06-25 11:46:35 +02:00
compose-env.yaml Disable TLS for e2e docker-in-docker daemon 2019-07-29 14:50:23 -07:00