-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
Image building fails when DOCKER_HOST is set to a local socket prefixed with unix:// #22300
Comments
Thanks for the report. It looks like we're not handling the |
@wilkinsona thanks for your response. The following succeeds:
|
@schnatterer Thank you for trying that. We're seeing the same behaviour. |
schnatterer
added a commit
to cloudogu/ces-build-lib
that referenced
this issue
Jul 10, 2020
Checking /var/run/docker.sock is the default anyway. The env var causes an issue with spring boot maven plugin when running maven inside a container: spring-projects/spring-boot#22300 Unfortunately, unsetting the var with "withEnv(['DOCKER_HOST='])" does not work, but setting an env var would work. So we remove the env var here, if anyone should need it (even though it's the default behavior!) it can just be set using "withEnv(['DOCKER_HOST=unix:///var/run/docker.sock'])".
Thanks for the immediate fix, @wilkinsona |
Note that in Gradle I got this error:
Putting this here for others searching for the error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On our build server we have an environment varialbe
DOCKER_HOST="unix:///var/run/docker.sock"
set.This has not been a problem with the
docker
client nor with theio.fabric8: docker-maven-plugin
.spring-boot:build-image
fails, though.This can be reproduced locally like so:
Error does not occurr when
The text was updated successfully, but these errors were encountered: