Docker Community Forums

Share and learn in the Docker community.

Error running my docker file


(Ahsenullah) #1

Hi,
I am running my first dockerfile and am seeing the following errors.

C:\dockerfiles>docker run example
container_linux.go:265: starting container process caused "exec: “echo”: executable file not found in $PATH"
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused “exec: “echo”: executable file not
found in $PATH”.

It builds fine but getting error when I run it

Sample Dockerfile

Indicates that the windowsservercore image will be used as the base image.

FROM scratch

Metadata indicating an image maintainer.

MAINTAINER aaa@yahoo.com

CMD [ “echo”, “$HOME” ]

CMD ping localhost