Used ZooKeeper and Redis ports on newly created instance

redis
zookeeper

#1

After creating an instance with nothing but docker started, attempting to start ZooKeeper and Redis containers fails with the following errors:
ERROR: for zookeeper Cannot start service zookeeper: failed to create endpoint zookeeper on network tests_default: Error starting userland proxy: listen tcp 0.0.0.0:2181: bind: address already in use

ERROR: for redis Cannot start service redis: failed to create endpoint redis on network ests_default: Error starting userland proxy: listen tcp 0.0.0.0:6379: bind: address already in use

We verified that these ports are not being used by anything started by us, can these ports be freed somehow? or do I have to use custom ports for tests?

Thanks.


#2

Are you using the Precise Image? If so, both Zookeeper and Redis are started by default.

I would suggest moving to the newer Trusty image since it has less services being started, and in general will be a more stable build environment. You can select this as your build environment from this page (replacing $ORG and $REPO with your own).

https://circleci.com/gh/$ORG/$REPO/edit#build-environment

#3