Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not start kafka service: service "kafka" is not running #755

Open
Studio-tyx opened this issue Jan 2, 2025 · 0 comments
Open

Could not start kafka service: service "kafka" is not running #755

Studio-tyx opened this issue Jan 2, 2025 · 0 comments

Comments

@Studio-tyx
Copy link

when I want to start kafka service using:

$ sudo docker compose exec kafka kafka-console-consumer.sh --bootstrap-server kafka:9092 --topic SYS

the result shows that:

service "kafka" is not running

the docker-compose.yml is:

version: '2'
services:
  zookeeper:
    image: wurstmeister/zookeeper
    ports:
      - "2181:2181"
    restart: unless-stopped

  kafka:
    build: .
    ports:
      - "9092"
    environment:
      DOCKER_API_VERSION: 1.22
      KAFKA_ADVERTISED_HOST_NAME: 10.214.131.197
      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant