Docker Community Forums

Share and learn in the Docker community.

Yml file question , now cant find dockerfile


(Ralph Kincade) #1

I am using this dockerfile on ucp

version: '2’
services:
web:
build: .
depends_on:
- db
- redis
redis:
image: redis
db:
image: postgres

but when I run it I get this error , I think this worked one time but know I run it and I get the error:

"Error response from daemon: Cannot locate specified Dockerfile: Dockerfile
Deployment was unsuccessful (status code 1)"

Created docker/ucp-compose:1.1.1 compose container
Started compose container 9b4f18396368945db9ae9250b89d7c3b020d562d3715ce10c38c3c8a789a251d
compose.config.config.find: Using configuration files: ./docker-compose.yml
docker.auth.auth.load_config: Found ‘HttpHeaders’ section
compose.cli.command.get_client: docker-compose version 1.7.0, build 0d7bf73
docker-py version: 1.8.0
CPython version: 2.7.11
OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
compose.cli.command.get_client: Docker base_url: https://192.168.56.53:443
compose.cli.command.get_client: Docker version: KernelVersion=3.16.0-30-generic, Os=linux, BuildTime=Fri May 27 17:25:03 UTC 2016, ApiVersion=1.22, Version=ucp/1.1.1, GitCommit=f28e3be, Arch=amd64, GoVersion=go1.6.2
compose.cli.verbose_proxy.proxy_callable: docker inspect_network <- (u’test33_default’)
compose.network.ensure: Creating network “test33_default” with the default driver
compose.cli.verbose_proxy.proxy_callable: docker create_network <- (ipam=None, driver=None, options=None, name=u’test33_default’)
compose.cli.verbose_proxy.proxy_callable: docker create_network -> {u’Id’: u’c561de620d8ef0bd30f19f2555acf2634adbd587510d425646d7b7e398646c31’,
u’Warning’: u’’}
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=False, filters={u’label’: [u’com.docker.compose.project=test33’, u’com.docker.compose.oneoff=False’]})
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 0 items)
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={u’label’: [u’com.docker.compose.project=test33’, u’com.docker.compose.service=db’, u’com.docker.compose.oneoff=False’]})
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 0 items)
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={u’label’: [u’com.docker.compose.project=test33’, u’com.docker.compose.service=redis’, u’com.docker.compose.oneoff=False’]})
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 0 items)
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={u’label’: [u’com.docker.compose.project=test33’, u’com.docker.compose.service=web’, u’com.docker.compose.oneoff=False’]})
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 0 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- (‘postgres’)
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {u’Architecture’: u’amd64’,
u’Author’: u’’,
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.cli.verbose_proxy.proxy_callable: docker inspect_image <- (‘redis’)
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {u’Architecture’: u’amd64’,
u’Author’: u’’,
u’Comment’: u’’,
u’Config’: {u’ArgsEscaped’: True,
u’AttachStderr’: False,
u’AttachStdin’: False,
u’AttachStdout’: False,
u’Cmd’: [u’redis-server’],
u’Domainname’: u’’,
u’Entrypoint’: [u’docker-entrypoint.sh’],

compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- (u’test33_web’)
compose.service.build: Building web
compose.cli.verbose_proxy.proxy_callable: docker build <- (pull=False, nocache=False, stream=True, tag=u’test33_web’, buildargs=None, forcerm=False, rm=True, path=’/ucp-compose’, dockerfile=None)
docker.api.build._set_auth_headers: Looking for auth config
docker.api.build._set_auth_headers: Sending auth config (‘HttpHeaders’)
compose.cli.verbose_proxy.proxy_callable: docker build -> <generator object _stream_helper at 0x7f55ba8d62d0>
compose.cli.errors.log_api_error: Error response from daemon: Cannot locate specified Dockerfile: Dockerfile
Deployment was unsuccessful (status code 1)