Open jpchev opened 3 years ago
it is necessary to add the 'hostname' property in the service configuration file. Because the swarm network uses DNS in the container name by default.
kafka-connect: image: confluentinc/cp-kafka-connect-base:6.0.0 hostname: kafka-connect depends_on:
it is necessary to add the 'hostname' property in the service configuration file. Because the swarm network uses DNS in the container name by default.
kafka-connect: image: confluentinc/cp-kafka-connect-base:6.0.0 hostname: kafka-connect depends_on: - zookeeper - kafka
Thx for this tip! Tested with confluent's 7.7.1 image versions. Using hostname env variable, this annoying problem was gone.
I'm using the attached docker compose file kafka.zip, and these commands
docker swarm init docker stack deploy --prune --with-registry-auth -c kafka.yml kafka_pd
then the following commands shows 0/1 replicas deployed
do you have an idea why the kafka-connect service is not being deployed correctly?