Don't put dockerfiles in one continuous code block

Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
This commit is contained in:
Aidan Hobson Sayers 2015-10-06 22:58:23 +01:00
parent c1c3475c6a
commit 6a1a192e07
1 changed files with 37 additions and 32 deletions

View File

@ -1166,6 +1166,7 @@ or a signal name in the format SIGNAME, for instance SIGKILL.
## Dockerfile examples
```
# Nginx
#
# VERSION 0.0.1
@ -1175,7 +1176,9 @@ or a signal name in the format SIGNAME, for instance SIGKILL.
LABEL Description="This image is used to start the foobar executable" Vendor="ACME Products" Version="1.0"
RUN apt-get update && apt-get install -y inotify-tools nginx apache2 openssh-server
```
```
# Firefox over VNC
#
# VERSION 0.3
@ -1192,7 +1195,9 @@ or a signal name in the format SIGNAME, for instance SIGKILL.
EXPOSE 5900
CMD ["x11vnc", "-forever", "-usepw", "-create"]
```
```
# Multiple images example
#
# VERSION 0.1
@ -1207,4 +1212,4 @@ or a signal name in the format SIGNAME, for instance SIGKILL.
# You᾿ll now have two images, 907ad6c2736f with /bar, and 695d7793cbe4 with
# /oink.
```