Docker Community Forums

Share and learn in the Docker community.

Beta 18 - Mounts denied: closed

beta

(Alexandre) #1

Expected behavior

Expecting docker-compose up to start the stack without error.

Actual behavior

An error about Mounts denied: closed

alexandreleveille:wj alexandre.leveille$ docker-compose up
WARNING: The WJ_INFRA_ROUTER_TAG variable is not set. Defaulting to a blank string.
WARNING: The WJ_LOCAL_API_REF_DATA_TAG variable is not set. Defaulting to a blank string.
WARNING: The WJ_LOCAL_SERVICES_TAG variable is not set. Defaulting to a blank string.
WARNING: The WJ_LOCAL_WEB_TAG variable is not set. Defaulting to a blank string.
WARNING: The WJ_LOCAL_TASKS_NOTIFICATIONS_TAG variable is not set. Defaulting to a blank string.
WARNING: The WJ_LOCAL_API_MESSAGE_TAG variable is not set. Defaulting to a blank string.
Creating network "wj_default" with the default driver
Creating wj-infra-dynamodb
Creating wj-infra-elasticsearch
Creating wj-infra-rabbitmq
Creating wj-logs-logstash
Creating wj-local-api-ref-data
Creating wj-logs-elasticdata
Creating wj-infra-redis
Creating wj-local-services-data-bootstrap
Creating wj-logs-elasticsearch

ERROR: for wj-logs-elasticsearch  Mounts denied: closed

ERROR: for wj-logs-logstash  driver failed programming external connectivity on endpoint wj-logs-logstash (15c5e98f7d13e880bea5edaa381ca4959d4f988364a20a65d0b0377d3c4265be): iptables failed: iptables --wait -t nat -A DOCKER -p udp -d 0/0 --dport 5000 -j DNAT --to-destination 172.18.0.5:5000 ! -i br-1e97813c91aa: Fatal error: exception Unix.Unix_error(Unix.ENOTCONN, "open", "/var/log/service-port-opener.log")
 (exit status 2)

ERROR: for wj-infra-rabbitmq  driver failed programming external connectivity on endpoint wj-infra-rabbitmq (fefacdc0d3fe6a9631e7d3cc940268cb5dd82d34cd6906b047d60350e6187d0e): iptables failed: iptables --wait -t nat -A POSTROUTING -p tcp -s 172.18.0.4 -d 172.18.0.4 --dport 15672 -j MASQUERADE: Fatal error: exception Unix.Unix_error(Unix.ENOTCONN, "open", "/var/log/service-port-opener.log")
 (exit status 2)

ERROR: for wj-infra-dynamodb  Mounts denied: closed
ERROR: Encountered errors while bringing up the project.

Information

Docker for Mac: version: mac-v1.12.0-beta18-3-gec40b14
OS X: version 10.11.5 (build: 15F34)
logs: /tmp/20160706-095343.tar.gz
[OK]     docker-cli
[OK]     app
[OK]     menubar
[OK]     virtualization
[OK]     system
[OK]     osxfs
[OK]     db
[OK]     slirp
[OK]     moby-console
[OK]     logs
[OK]     vmnetd
[OK]     env
[OK]     moby
[OK]     driver.amd64-linux

Diagnostic ID: 9CAC4016-07C7-47AB-96AF-0B81F345D43E
Mac OS X El Capitan 10.11.5

Snippet from the docker file:

## infrastructure-logging components
  wj-logs-elasticdata:
    image: elasticsearch:1.7.0
    container_name: wj-logs-elasticdata
    volumes:
     - logs_elasticsearch-data:/var/lib/elasticsearch/data
     - logs_elasticsearch-logs:/var/lib/elasticsearch/logs
    command: chown elasticsearch:elasticsearch /var/lib/elasticsearch/logs /var/lib/elasticsearch/data

  wj-logs-elasticsearch:
    image: elasticsearch:1.7.0
    container_name: wj-logs-elasticsearch
    volumes_from:
     - wj-logs-elasticdata
    volumes:
     - ../elk/es-conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
    ports:
     - "9200:9200"
    networks:
     - default

  wj-logs-logstash:
    image: logstash:1.5.3
    container_name: wj-logs-logstash
    ports:
     - "5000:5000/udp"
    volumes:
     - ../elk/logstash-conf:/opt/logstash/conf.d
    command: -f /opt/logstash/conf.d/logstash.conf
    networks:
     - default

  wj-logs-kibana:
    image: kibana:4.1.1
    container_name: wj-logs-kibana
    environment:
     - ELASTICSEARCH_URL=http://wj-logs-elasticsearch:9200
    expose:
     - "5601"
    depends_on:
     - wj-logs-elasticsearch
     - wj-logs-logstash
    networks:
     - default

  wj-logs-proxyelk:
    image: nginx:1.9.3
    container_name: wj-logs-proxyelk
    ports:
     - "5600:5600"
    volumes:
     - ../elk/proxy-conf:/etc/nginx/conf.d
    depends_on:
     - wj-logs-kibana
    networks:
     - default

Steps to reproduce the behavior

Unable to reproduce. This was a one-time error so far. I was able to re-issue docker-compose up and it worked. I will update this post if it happens again.

Also, if I am able to reliably reproduce, I will come up with a public docker-compose file to reproduce the issue.