-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build container via git url in version 18.03.x #36965
Comments
With the standard version of git, the image is not compiled.
But if the package is updated from third-party repository, then the build is working correctly.
|
But with docker-ce version 17.12.x all working fine
|
Suspecting this change could be the culprit #35737 ping @tonistiigi |
I searched from Google leading me to this page. I tell what I find, for reference. Docker 18.02 run a # for EL7
sudo yum install https://centos7.iuscommunity.org/ius-release.rpm
sudo yum swap git git2u |
It is not always possible to update packages from non-official repos. This method can not be considered a solution to this problem, rather as a workaround. |
Opened #37469, but I'm not sure if that's the best approach |
I like that approach. Hope it gets merged soon, but I don't know how soon it would make it into mainstream Docker after that. Is there a workaround without doing piles of weird shell magic or shoehorning a non-official Git package into our production build environment? |
The
|
This is a big problem for us as well, since we can no longer build images directly from a git URL when the git repo contains submodules that are not at the head of a branch or recent tag. Perhaps an optional command line switch to disable the |
Description
Can't build container via git url
Steps to reproduce the issue:
Just for example you can try to start building this image
docker build https://github.com/docker-library/rabbitmq.git#:/3.7/alpine
Describe the results you received:
Describe the results you expected:
Successfully built
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:same thing in
Docker version 18.03.0-ce, build 0520e24
Output of
docker info
:The text was updated successfully, but these errors were encountered: