Closed jamesnetherton closed 7 years ago
It is not easy to provide this in the sense that for Docker the operations are create, start and pull not createAndStartAndPullIfNecessary
and we are trying to be Docker compliant in this sense, but maybe we could provide any helper or something but not clear idea right now. cc/ @bartoszmajsak
The strange thing is that after reviewing the code it seems it should work @jamesnetherton can you share the project so it can be debugged?
You're right. This does actually work fine so I'll close this issue.
I think the thing that is screwing this up for me is that I have CXF dependencies present on the classpath. These conflict with the docker java client and the jersey stuff. Thus I get unpredictable behaviour.
Nice to hear that, this is something that we are working with @bartoszmajsak to change from docker-client
to fabric8-docker
so we don't have JAXRS classpath problems.
Issue Overview
When attempting to use
CubeController.create()
, if the image is not present then the operation fails.Maybe this is the expected (or even desired?) behaviour. But having to manually pre-pull stuff is kinda painful, especially in CI scenario.
Expected Behaviour
CubeController.create()
pulls the image if it's not present.Current Behaviour
An exception is thrown:
Steps To Reproduce
CubeController
into a test and attempt to create an influxdb container: