docker 설치 및 확인
https://docs.confluent.io/4.0.0/installation/docker/docs/quickstart.html
2. Clone the Confluent Platform Docker Images Github Repository.
...\confluent> git clone https://github.com/confluentinc/cp-docker-images
3. Start the ZooKeeper and Kafka containers in detached mode (-d).
Run this comand from the directory that contains the docker-compose.yml file.
> cd <path-to-cp-docker-images>/examples/kafka-single-node/
> docker-compose up -d
> docker-compose logs zookeeper | grep -i binding
> docker-compose logs kafka | grep -i started
아래는 이전에 했던 방법.
docker-compose 이용
https://github.com/conduktor/kafka-stack-docker-compose
Dev Environments > Create
Enter the Git Repository
https://github.com/conduktor/kafka-stack-docker-compose.git |
yml 파일 작성하기
zk-single-kafka-single.yml을 기반으로 ym-test-z1-k1.yml 작성
$ docker-compose -f ym-test-z1-k1.yml up
vscode ➜ /com.docker.devenvironments.code (master ✗) $ sudo chmod 666 /var/run/docker.sock
vscode ➜ /com.docker.devenvironments.code (master ✗) $ export DOCKER_HOST_IP=192.168.65.100
vscode ➜ /com.docker.devenvironments.code (master ✗) $ docker-compose -f ym-test-z1-k1.yml up
Starting comdockerdevenvironmentscode_zoo1_1 ... done
Starting comdockerdevenvironmentscode_kafka1_1 ... error
ERROR: for comdockerdevenvironmentscode_kafka1_1 Cannot start service kafka1: Ports are not available: listen tcp 0.0.0.0:9999: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
ERROR: for kafka1 Cannot start service kafka1: Ports are not available: listen tcp 0.0.0.0:9999: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
ERROR: Encountered errors while bringing up the project.
Docker subnet 설정
$ sudo chmod 666 /var/run/docker.sock
$ export DOCKER_HOST_IP=192.168.65.100
$ docker-compose -f zk-single-kafka-single.yml up
'OS > Windows' 카테고리의 다른 글
How to build the HackRF on Windows (0) | 2023.08.29 |
---|