title: Docker Error: Cannot create container for service, no such file or dir
body: <p>I'm trying to install CKAN via docker-compose:
  <a href="http://docs.ckan.org/en/2.8/maintaining/installing/install-from-docker-compose.html" rel="noreferrer">http://docs.ckan.org/en/2.8/maintaining/installing/install-from-docker-compose.html</a></p>
  
  <p>If I try to build with:</p>
  
  <pre><code>docker-compose up -d --build
  </code></pre>
  
  <p>I keep getting:</p>
  
  <pre><code>ERROR: for db  Cannot create container for service db: no such file or directory
  ERROR: compose.cli.main.main: Encountered errors while bringing up the project.
  </code></pre>
  
  <p>With the verbose flag I get:</p>
  
  <pre><code>compose.cli.verbose_proxy.proxy_callable: docker inspect_image &lt;- (u'docker_db')
  urllib3.connectionpool._make_request: http://localhost:None "GET /v1.25/images/docker_db/json HTTP/1.1" 200 None
  compose.cli.verbose_proxy.proxy_callable: docker inspect_image -&gt; {u'Architecture': u'amd64',
   u'Author': u'Open Knowledge',
   u'Comment': u'',
   u'Config': {u'ArgsEscaped': True,
               u'AttachStderr': False,
               u'AttachStdin': False,
               u'AttachStdout': False,
               u'Cmd': [u'postgres'],
               u'Domainname': u'',
               u'Entrypoint': [u'docker-entrypoint.sh'],
  ...
  compose.service.build_container_labels: Added config hash: dfb16feda9d1de6f3a84b0a6e1ecee1a8d041d06d5676351f8f723b05c4f6f03
  compose.cli.verbose_proxy.proxy_callable: docker create_host_config &lt;- (device_read_iops=None, mem_swappiness=None, links=[], oom_score_adj=None, blkio_weight=None, cpu_count=None, cpuset_cpus=None, dns_search=None, pid_mode=None, init_path=None, log_config={'Type': u'', 'Config': {}}, cpu_quota=None, read_only=None, cpu_percent=None, device_read_bps=None, storage_opt=None, init=None, dns=None, volumes_from=[], ipc_mode=None, mem_reservation=None, security_opt=None, shm_size=None, device_write_iops=None, dns_opt=None, cgroup_parent=None, group_add=None, network_mode=u'docker_default', volume_driver=None, oom_kill_disable=None, userns_mode=None, tmpfs=[], nano_cpus=None, port_bindings={}, isolation=None, memswap_limit=None, restart_policy=None, blkio_weight_device=None, devices=None, extra_hosts=None, binds=[u'docker_pg_data:/var/lib/postgresql/data:rw'], sysctls=None, pids_limit=None, device_write_bps=None, cap_add=None, mounts=None, mem_limit=None, runtime=None, cap_drop=None, privileged=False, ulimits=None, cpu_shares=None)
  compose.cli.verbose_proxy.proxy_callable: docker create_host_config -&gt; {'Binds': [u'docker_pg_data:/var/lib/postgresql/data:rw'],
   'Links': [],
   'LogConfig': {'Config': {}, 'Type': u''},
   'NetworkMode': u'docker_default',
   'PortBindings': {},
   'VolumesFrom': []}
  compose.cli.verbose_proxy.proxy_callable: docker create_container &lt;- (name='db', image=u'docker_db', labels={u'com.docker.compose.service': u'db', u'com.docker.compose.project': u'docker', u'com.docker.compose.config-hash': 'dfb16feda9d1de6f3a84b0a6e1ecee1a8d041d06d5676351f8f723b05c4f6f03', u'com.docker.compose.version': u'1.19.0', u'com.docker.compose.oneoff': u'False', u'com.docker.compose.container-number': '1'}, host_config={'NetworkMode': u'docker_default', 'Links': [], 'PortBindings': {}, 'Binds': [u'docker_pg_data:/var/lib/postgresql/data:rw'], 'LogConfig': {'Type': u'', 'Config': {}}, 'VolumesFrom': []}, environment=[u'POSTGRES_PASSWORD=uuimwc', u'DS_RO_PASS=uuimwc'], volumes={u'/var/lib/postgresql/data': {}}, detach=True, networking_config={u'EndpointsConfig': {u'docker_default': {u'IPAMConfig': {}, u'Aliases': ['db']}}})
  compose.parallel.feed_queue: Pending: set([&lt;Service: ckan&gt;])
  compose.parallel.feed_queue: Pending: set([])
  Creating db ... error
  compose.parallel.feed_queue: Pending: set([])
  compose.parallel.feed_queue: Pending: set([])
  urllib3.connectionpool._make_request: http://localhost:None "POST /v1.25/containers/create?name=db HTTP/1.1" 500 40
  compose.parallel.parallel_execute_iter: Failed: ServiceName(project=u'docker', service='db', number=1)
  compose.parallel.feed_queue: Pending: set([])
  
  ERROR: for db  Cannot create container for service db: no such file or directory
  compose.parallel.parallel_execute_iter: Failed: &lt;Service: db&gt;
  compose.parallel.feed_queue: Pending: set([&lt;Service: ckan&gt;])
  compose.parallel.feed_queue: &lt;Service: ckan&gt; has upstream errors - not processing
  compose.parallel.parallel_execute_iter: Failed: &lt;Service: ckan&gt;
  </code></pre>
  
  <p>Can anyone tell me how to find out what causes this?
  The errors are not really meaningful it seems, how can I find out what file or directory it is missing?</p>