Can't build image via git URL when git repo has submodules #40616
Labels
area/builder
kind/enhancement
Enhancements are not bugs or new features but can improve usability or performance.
version/19.03
Description
When invoking
docker build
with a git URL, if the git reference being checked out contains a reference to a submodule that is not at the head of a branch or recent tag in the submodule's repo, the operation fails.Steps to reproduce the issue:
docker build <git URL with a submodule reference not at a branch head or recent tag in the submodule repo>
Describe the results you received:
Describe the results you expected:
Successfully built
Additional information you deem important:
I believe this problem is caused by
docker build
cloning the requested git repository with the--depth=0
flag. The documentation makes no mention of--depth=0
being used.Output of
docker version
:Output of
docker info
:The text was updated successfully, but these errors were encountered: