Skip to content

Commit fcb9d85

Browse files
committed
Swap "git" variant to be "dind"-based in 23+
Historically, `docker build git://...` would invoke `git` in the client context, but `buildx` does so in the daemon context instead, and given that it is the default in 23+, let's adjust the git-including variant to be dind-based to simplify this for users who desire the 50MiB+ increase this workflow requires.
1 parent c93aa75 commit fcb9d85

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

23.0/git/Dockerfile

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

24-rc/git/Dockerfile

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile-git.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM docker:{{ env.version }}-cli
1+
FROM docker:{{ env.version }}-{{ if env.version | rtrimstr("-rc") == "20.10" then "cli" else "dind" end }}
22

33
RUN apk add --no-cache git

0 commit comments

Comments
 (0)