# Circle CI 2.11 Enterprise: Docker services inaccessible

**URL:** <https://discuss.circleci.com/t/circle-ci-2-11-enterprise-docker-services-inaccessible/17899>\
**Category:** Bug Reports\
**Tags:** docker, cci-20\
**Created:** [November 6, 2017, 7:48pm UTC](https://discuss.circleci.com/t/circle-ci-2-11-enterprise-docker-services-inaccessible/17899 "2017-11-06T19:48:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rprashad](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rprashad/32/9299_2.png) [@rprashad](https://discuss.circleci.com/u/rprashad)\
**Post date:** [November 6, 2017, 7:48pm UTC](https://discuss.circleci.com/t/circle-ci-2-11-enterprise-docker-services-inaccessible/17899/1 "2017-11-06T19:48:41Z")

</div>

Hi Support,

We’re an enterprise customer that has stepped thru the upgrade procedure and have recently been met with pre 2.0 builds failing, specifically during test scenarios that require instances of certain datastores (mongo, postgres, solr etc.) to be tested against localhost. But are currently seeing the following:

1. previous containers are not cleaned up:

make solr  
docker run   
-d   
-p 8981:8983   
solr:7.1-alpine  
bd723464aab62f41c8636bd6700d2e7f11c80a127828fc379b7102dfdf92146f  
docker: Error response from daemon: driver failed programming external connectivity on endpoint laughing\_panini (5bf2224f1fb54c6598c97407e877961aa35c32d1556c4ab35b9d096f23ff948c): Bind for 0.0.0.0:8981 failed: port is already allocated.  
make: \*\*\* [solr] Error 125

make solr returned exit code 2

ENV=test make elasticsearch  
docker run -p 9201:9200   
-d   
-e “http.host=0.0.0.0”   
-e “transport.host=127.0.0.1”   
-e “xpack.security.enabled=false”   
[docker.elastic.co/elasticsearch/elasticsearch:5.2.2](http://docker.elastic.co/elasticsearch/elasticsearch:5.2.2)  
aba16e3867daa954483e81d1297fd40b33acd59e8fcce308c4ea6c683aae470e  
docker: Error response from daemon: driver failed programming external connectivity on endpoint lucid\_goodall (99e8498856ba343246c1d7b8d1082fdd0d4edd7e4b359f5f4f548f4a178d3f64): Error starting userland proxy: listen tcp 0.0.0.0:9201: bind: address already in use.  
make: \*\*\* [elasticsearch] Error 125

ENV=test make elasticsearch returned exit code 2

1. issues with test references to localhost are now failing whereas it worked in 1.4.6.x

Failure/Error: Repositories::DressRepository.new.create\_index!(force: true)

Faraday::ConnectionFailed:  
Failed to open TCP connection to localhost:9201 (Connection refused - connect(2) for “localhost” port 9201)

We suspect this is due to the nature of changes between 1.x and 2.x specifically running docker containers in lxc vs docker-in-docker, and have not been able to solve these issues without asking users of CCI enterprise to migrate to 2.0 or rework their existing builds to reference well known hostnames/docker instance names etc. What is circle-ci’s recommendation here?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:35am UTC](https://discuss.circleci.com/t/circle-ci-2-11-enterprise-docker-services-inaccessible/17899/2 "2018-06-18T11:35:16Z")

</div>


