Closed mbrasier closed 6 years ago
Can you provide a github project so we can take a look?
I will put something together next week.
Great, thank you very much, since I am not sure what is happening because we have tested this use case as well (or at least with the description) then I am not sure what is happening. Then with an example I will be able to debug, fix it in cube or provide you a solution on your example
It seems to be an issue with the latest version of docker, which doesn't work with the older version of docker-java that arquillian-cube (at least the version in the latest arquillian-universe BOM) uses. Tracing through, docker outputs a string "Successfully tagged" when the image is created, but docker-java is looking for the string "Successfully created" and so assumes that creation of the container failed. It may be you start seeing the issue if you updated to the latest docker release.
Then assuming that latest docker-java
has fixed, you can update the version on your pom and try it.
Yes that works, but this ticket is to ensure that arquillian-cube updates its dependency (having a dependency on docker-java in our project isn't great, because we don't depend on it, other than to fix arquillian-cube).
ok, then it is easy, thanks:) I'll do it now.
Issue Overview
When building a docker image from a dockerfile, a
DockerClientException: Could not build image: null
is thrown, this appears to be caused by using an old version of docker-java, as it is a fixed bug in the latest versions.Expected Behaviour
No exception is thrown
Current Behaviour
Steps To Reproduce
Use a dockerfile to build an image:
Additional Information
See https://github.com/docker-java/docker-java/issues/860 for related docker-java issue