Docker container stuck in starting can’t be pinged
(I am using docker swarm) I have a docker container running a kafka instance with a healthcheck checking if a topic called hc
has been created.
Because of that the docker node ps
command shows the CURRENT STATE
of the container as STARTING
.
I have another docker container which sole purpose is to initialize all needed topics including the hc
topic. However with the healthcheck of the kafka container in place the initialization container can’t even ping the kafka container. However when I change the kafka helthcheck to something immediately returning healthy the init container has no problems pining and doing its initialization.