Docker Community Forums

Share and learn in the Docker community.

Docker Build cannot find the DockerFile [BETA]


(Garyld1962) #1

Expected behavior

$docker build -t hellonode .
Docker Build builds the container

Actual behavior

I get an error
Error response from daemon: Cannot locate specified Dockerfile: Dockerfile

Information

Contents of DockerFile
FROM node:4.2.3

EXPOSE 3000
COPY . /app
WORKDIR /app

RUN cd /app; npm install
CMD [“npm”,“start”]

Steps to reproduce the behavior

  1. $docker build -t hellonode .
  2. $Error response from daemon: Cannot locate specified Dockerfile: Dockerfile

(Hanzhaolumos) #2

May be you put your Dockerfile under the wrong positon.


(Garyld1962) #3

nope, it is in the current dir


(Garyld1962) #4

Never mind… No sleep - case problem on “Dockerfile”.

I cloned a repo that was created in windows!

Sorry

G


(Dave Tucker) #5