Skip to content

Commit

Permalink
Merge pull request moby#11203 from rhatdan/Dockerfile
Browse files Browse the repository at this point in the history
We had some testers who found a hard to diagnose bug in Dockerfile
  • Loading branch information
Jessie Frazelle committed Mar 17, 2015
2 parents 44e9715 + b3769f0 commit f4f10cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/man/Dockerfile.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ A Dockerfile is similar to a Makefile.
exec form makes it possible to avoid shell string munging. The exec form makes
it possible to **RUN** commands using a base image that does not contain `/bin/sh`.

Note that the exec form is parsed as a JSON array, which means that you must
use double-quotes (") around words not single-quotes (').

**CMD**
-- **CMD** has three forms:

Expand All @@ -120,6 +123,9 @@ A Dockerfile is similar to a Makefile.
be executed when running the image.
If you use the shell form of the **CMD**, the `<command>` executes in `/bin/sh -c`:

Note that the exec form is parsed as a JSON array, which means that you must
use double-quotes (") around words not single-quotes (').

```
FROM ubuntu
CMD echo "This is a test." | wc -
Expand Down

0 comments on commit f4f10cf

Please sign in to comment.