mirror of https://github.com/docker/docs.git
Don't put dockerfiles in one continuous code block
Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
This commit is contained in:
parent
c1c3475c6a
commit
6a1a192e07
|
@ -1166,6 +1166,7 @@ or a signal name in the format SIGNAME, for instance SIGKILL.
|
||||||
|
|
||||||
## Dockerfile examples
|
## Dockerfile examples
|
||||||
|
|
||||||
|
```
|
||||||
# Nginx
|
# Nginx
|
||||||
#
|
#
|
||||||
# VERSION 0.0.1
|
# 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"
|
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
|
RUN apt-get update && apt-get install -y inotify-tools nginx apache2 openssh-server
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
# Firefox over VNC
|
# Firefox over VNC
|
||||||
#
|
#
|
||||||
# VERSION 0.3
|
# VERSION 0.3
|
||||||
|
@ -1192,7 +1195,9 @@ or a signal name in the format SIGNAME, for instance SIGKILL.
|
||||||
|
|
||||||
EXPOSE 5900
|
EXPOSE 5900
|
||||||
CMD ["x11vnc", "-forever", "-usepw", "-create"]
|
CMD ["x11vnc", "-forever", "-usepw", "-create"]
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
# Multiple images example
|
# Multiple images example
|
||||||
#
|
#
|
||||||
# VERSION 0.1
|
# 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
|
# You᾿ll now have two images, 907ad6c2736f with /bar, and 695d7793cbe4 with
|
||||||
# /oink.
|
# /oink.
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue