1. Install image
docker pull zookeeper:3.6.2
2. Start ZK
docker run --privileged=true -d --name zookeeper -p 2181:2181 \ -v /home/workspace/zookeeper/data:/data \ -v /home/workspace/zookeeper/logs:/datalog \ -d zookeeper:3.6.2
3. Go to ZK image summary
docker exec -it zookeeper /bin/bash
3. View ZK log
docker logs -f zookeeper
4. Validation and FAQs
Refer to my last article:
https://blog.csdn.net/qq_ 42390636/article/details/114986157
Read More:
- Error in starting zookeeper in Windows: zookeeper audit is disabled
- Docker machine install syntax error near unexpected token ‘newline’! DOCTYPE HTML problem resolution
- [Sovled] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- Zookeeper start error [How to Solve]
- The first installation of zookeeper on Linux failed to start
- The installation of docker desktop failed. After successful installation, the docker can not be started
- Starting zookeeper… Already running as process 1949
- Installing zookeeper under Linux system
- docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled
- systemctl start docker Job for docker.service failed because the control process exited with error
- Solve the problem of unable to start under zookeeper Linux
- Docker starts the image and reports an error. Iptables failed: iptables — wait – t NAT – a docker – P TCP
- Solve Linux docker pull error get https://registry-1.docker.io/v2/ : Net / http: TLS handshake timeout
- zookeeper_ An error is reported when the exporter starts
- Starting zookeeper to report an error already running as process
- Zookeeper will not attempt to authenticate using SASL (unknown error)
- Java connection zookeeper high availability hive error
- Docker start error: failed to start docker application container engine.
- Docker was unable to connect to the docker daemons
- How to Fix ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?