Open dev-testbot opened 1 year ago
It is an issue of Buildx reported here: https://github.com/docker/buildx/issues/987 and here: https://github.com/docker/buildx/issues/1895
As a workaround, you can use the legacy builder as:
DOCKER_BUILDKIT=0 docker build --disable-content-trust=false
Description
Using the flag
--disable-content-trust
fordocker build
results in error:Using docker v24.0.5
The flag
--disable-content-trust
appears in docs at https://docs.docker.com/engine/reference/commandline/build/, however the option is not visible in the output ofdocker build --help
(output attached in additional info). The release notes do not mention that this flag was deprecated (confirmed that the flag existed inDocker version 24.0.2, build cb74dfc
)Reproduce
(it's not a valid call to
docker build
but presents a minimal way to reproduce the error)Expected behavior
Should not get error:
docker version
docker info
Additional Info
docker build --help