Nik*_*sov 5 docker-compose docker-java testcontainers
有一个方法:
org.testcontainers.containers.GenericContainer#withNetwork
我可以使用它来使用 TestContainers 库生成具有相同网络的容器。
但是 DockerComposeContainer 怎么样,首先我启动它,然后我想从中获取一个网络并在我跟随 GenericContainers 生成时重用相同的网络。
现在还有可能吗?
归档时间: |
|
查看次数: |
384 次 |
最近记录: |