turnbullpress / dockerbook-code

The code and configuration examples from The Docker Book (http://www.dockerbook.com)
929 stars 580 forks source link

oci runtime error: exec: " nginx": executable file not found #33

Closed axyr closed 8 years ago

axyr commented 8 years ago

Docker Version 1.12.1 (build: 12133) OSX Version 10.11.5 (15F34)

When running :

docker run -d -p 80 --name static_web jamtur01/static_web \ nginx -g "daemon off;"

As written on page 96 from Version: v1.12.2 (51305ad)

I get this message :

docker: Error response from daemon: oci runtime error: exec: " nginx": executable file not found in $PATH.

I tried several variations, but no luck...

jamtur01 commented 8 years ago

Try it without the \

docker run -d -p 80 --name static_web jamtur01/static_web nginx -g "daemon off;"

Kalaikkovan commented 5 years ago

starting container process caused "exec: \"-g\": executable file not found in $PATH": unknown