Coder Social home page Coder Social logo

Comments (2)

JuanjoA-PH avatar JuanjoA-PH commented on August 19, 2024

@injam4u this work ok:

$ docker ps
CONTAINER ID        IMAGE                         COMMAND                  CREATED             STATUS              PORTS                                            NAMES
eb2433432ce1        confluentinc/cp-kafka:5.5.1   "/etc/confluent/dock…"   11 minutes ago      Up 11 minutes       0.0.0.0:9092->9092/tcp                           kafka-stack-docker-compose_kafka1_1
1bafe099e903        zookeeper:3.4.9               "/docker-entrypoint.…"   11 minutes ago      Up 11 minutes       2888/tcp, 0.0.0.0:2181->2181/tcp, 3888/tcp       kafka-stack-docker-compose_zoo1_1

$ docker exec kafka-stack-docker-compose_kafka1_1 kafka-topics --list --zookeeper kafka-stack-docker-compose_zoo1_1:2181
__confluent.support.metrics
__consumer_offsets

from kafka-stack-docker-compose.

devshawn avatar devshawn commented on August 19, 2024

As @JuanjoA-PH said, you can access the brokers directly via docker by using docker exec. Locally, it depends on how you are using Docker (or Docker Toolkit).

For example, on Ubuntu with just Docker installed, I can access the brokers by running against localhost:

kafka-topics --bootstrap-server localhost:9092 --list

from kafka-stack-docker-compose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.