cp-all-in-one icon indicating copy to clipboard operation
cp-all-in-one copied to clipboard

Port 2181 bind error on Zookeeper startup

Open dr3x opened this issue 2 years ago • 0 comments

Description Error starting zookeeper on docker-compose up. May be Docker issue https://github.com/docker/compose/issues/7188

Update After upgrading Docker Desktop to 4.2.0 and rebooting machine, was able to get the instance to start; could be timing issue.

curl --silent --output docker-compose.yml https://raw.githubusercontent.com/confluentinc/cp-all-in-one/7.0.0-post/cp-all-in-one/docker-compose.yml

docker-compose up -d

Troubleshooting Docker Issue: Port conflict with multiple "host::port" services

Output of compose log: ... Creating zookeeper ... error

ERROR: for zookeeper Cannot start service zookeeper: Ports are not available: listen tcp 0.0.0.0:2181: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

ERROR: for zookeeper Cannot start service zookeeper: Ports are not available: listen tcp 0.0.0.0:2181: 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.

Environment

  • GitHub branch: 7.0.0-post
  • Operating System: Windows 10
  • Version of Docker: Docker Desktop 3.0.0 / 4.2.0
  • Version of Docker Compose: version 1.27.4, build 40524192 / 1.29.2, build 5becea4c Updated Docker Desktop, same issue

dr3x avatar Nov 18 '21 21:11 dr3x