Reputation: 25
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
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