Github user snowch commented on the pull request:

    https://github.com/apache/couchdb/pull/340#issuecomment-137177014
  
    Seems to be working ok for me:
    
    ```
    vagrant@vagrant-ubuntu-trusty-64:~/Repos/couchdb-klaemo$ docker run -i -t 
-P --rm couchdb-master --with-haproxy
    [ * ] Setup environment ... ok
    [ * ] Ensure CouchDB is built ... ok
    [ * ] Prepare configuration files ... ok
    [ * ] Start node node1 ... ok
    [ * ] Start node node2 ... ok
    [ * ] Start node node3 ... ok
    [ * ] Check node at http://127.0.0.1:15984/ ... failed: [Errno socket 
error] [Errno 111] Connection refused
    [ * ] Check node at http://127.0.0.1:25984/ ... ok
    [ * ] Check node at http://127.0.0.1:35984/ ... ok
    [ * ] Check node at http://127.0.0.1:15984/ ... ok
    [ * ] Running cluster setup ... ok
    [ * ] Developers cluster is set up at http://127.0.0.1:15984.
    Admin username: root
    Password: Dog2iOiA
    Time to hack! ... 
    ```
    I also managed to run OK with haproxy.  To start the container then access 
haproxy in the container from the docker host:
    
    ```
    host$ COUCH_INSTANCE_ID=$(docker run -d -P couchdb-master --with-haproxy)
    host$ COUCH_INSTANCE_IP=$(docker inspect 
--format='{{.NetworkSettings.IPAddress}}' $COUCH_DOCKER_ID)
    host$ firefox ${COUCH_INSTANCE_IP}:5984
    ```
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to