Closed denis-zhdanov closed 1 year ago
Hi @denis-zhdanov, If you dont mind will you be able to share the code that is used to create docker inside docker and run kafka cluster in it?
hi @hariohmprasath,
Sure, it's very straightforward :)
val container = KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:6.2.1"))
container.start()
Hi @denis-zhdanov,
Thanks again for the sample. I don't see any error in the cluster startup looks like it might be interrupted because of the startupRetryAttempts limit set on the GenericContainer
, you can try increasing this value on the container (like below) before issuing container.start()
container.withStartupAttempts(3)
@denis-zhdanov did the approach suggested by @hariohmprasath help with your situation?
I'll close the issue for now, please let us know if the issues persists @denis-zhdanov and we can re-open.
Module
Kafka
Testcontainers version
1.17.3
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
x86_64
Docker version
What happened?
KafkaContainer
doesn't start in docker-in-docker environment. The same test works perfectly in local environment. Used kafka imageconfluentinc/cp-kafka:6.2.1
.Relevant log output
Additional Information
No response