Open ewencluley opened 3 years ago
I have worked out that if I specify a custom network this works and the containers started in different phases can now communicate.
Is this the expected behaviour?
sorry for the late answer, and happy that it worked out for you. I'm currently not deep in the plugin anymore so can't really say whether this is expected or not :)
Description
Containers started in different parts of the maven lifecycle cannot be linked.
Given a simple configuration where a container is started in one lifecycle phase and then another is started in another lifecycle phase that has a dependency on the first- e.g.
When running
mvn clean integration-test
(i.e. the later lifecycle phase with the dependent container) Then docker maven plugin will exit with errorI have tried this with other images with the same results.
It's possible I have missed something in the config but I think this should not happen given this resolved issue https://github.com/fabric8io/docker-maven-plugin/issues/195
Info
mvn -v
) :