I have started Confluent Platform on my windows 10 using docker with the help of https://docs.confluent.io/current/quickstart/ce-docker-quickstart.html. Now I want to try using Confluent CLI. But I don't see any documentation on how to use confluent cli on docker. Can you please suggest me how can I do this !
How to use Confluent CLI on docker
3.3k Views Asked by i.am.jabi At
2
There are 2 best solutions below
0
On
Here is the image:
https://hub.docker.com/r/confluentinc/confluent-cli
Basically run the following commands:
devbox1@devbox1:~/onibex/wa$ docker pull confluentinc/confluent-cli
devbox1@devbox1:~/onibex/wa$ docker run confluentinc/confluent-cli
To check if the image was added:
devbox1@devbox1:~/onibex/wa$ docker ps -a | grep confluent-cli
a5ecf9223d35 confluentinc/confluent-cli
Add "sudo" if it is needed.
Confluent does not provide a docker image for the CLIs at this time (that I'm aware of). Until that time, you could build a simple image locally to package up the CLI for experimenting w/ the command.
Create
Dockerfile:Then build with:
Then run on the cp-all-in-one network with:
Then from the containers shell, experiement w/ the command: