Mikk Küttim
Mikk Küttim

Reputation: 25

Dockerfile not found on ubuntu 16.04, dockerfile exists

I have docker-compose.yml with the following lines

nginx:
build:
context: ./containers/nginx
dockerfile: ./containers/nginx/Dockerfile.dev

And when I try to do docker-compose up -d nginx it returns me a error

ERROR: Cannot locate specified Dockerfile: ./containers/nginx/Dockerfile.dev

The Dockerfile.dev exists in that directory.

Upvotes: 0

Views: 55

Answers (1)

Chris H
Chris H

Reputation: 962

I thought context specified the directory of your docker file so docker file shouldn't include a path.

nginx:
build:
context: ./containers/nginx
dockerfile: Dockerfile.dev

Upvotes: 1

Related Questions