SYMPTOM : We get the below error "bind already in use"
ERROR :
ERROR: for consul Cannot start container 8a0b07e6b35e7350656b54314f7023107f417c0e0031db28e91f6bfb7a245d6f: failed to create endpoint cbreak_consul_1 on network bridge: Error starting userland proxy: listen udp X.X.X.X: bind: address already in use
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "compose/cli/main.py", line 63, in main
AttributeError: 'ProjectError' object has no attribute 'msg'
docker-compose returned -1
ROOT CAUSE : Cloudbreak may have stale process and because there are some container still running from the previous run.
RESOLUTION : Please run the following :
cbd kill
# check if all containers have stopped
cbd start
This should fix the issue.