Closed tianon closed 5 days ago
docker build .
docker buildx build .
git status
DOCKER_BUILDKIT=0 docker build https://example/foo.git
docker buildx build https://example/foo.git
https://github.com/docker-library/docker/issues/482#issuecomment-2197116408
For now, I've just added git to the CLI variants without removing it from the DinD variants because the later apk add should be a no-op, but I'm open to removing it and relying on the FROM relationship
git
apk add
FROM
docker build .
/docker buildx build .
might shell out to git to ask about the context directory'sgit status
DOCKER_BUILDKIT=0 docker build https://example/foo.git
will run git in the client contextdocker buildx build https://example/foo.git
will run git in the daemon contexthttps://github.com/docker-library/docker/issues/482#issuecomment-2197116408