summaryrefslogtreecommitdiff
path: root/docs/sources/examples/postgresql_service.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/sources/examples/postgresql_service.md')
-rw-r--r--docs/sources/examples/postgresql_service.md10
1 files changed, 3 insertions, 7 deletions
diff --git a/docs/sources/examples/postgresql_service.md b/docs/sources/examples/postgresql_service.md
index 5265935e3d..ffd122ed58 100644
--- a/docs/sources/examples/postgresql_service.md
+++ b/docs/sources/examples/postgresql_service.md
@@ -35,17 +35,13 @@ Start by creating a new `Dockerfile`:
# of PostgreSQL, ``9.3``.
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
- # Update the Ubuntu and PostgreSQL repository indexes
- RUN apt-get update
-
# Install ``python-software-properties``, ``software-properties-common`` and PostgreSQL 9.3
# There are some warnings (in red) that show up during the build. You can hide
# them by prefixing each apt-get statement with DEBIAN_FRONTEND=noninteractive
- RUN apt-get -y -q install python-software-properties software-properties-common
- RUN apt-get -y -q install postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3
+ RUN apt-get update && apt-get install -y python-software-properties software-properties-common postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3
# Note: The official Debian and Ubuntu images automatically ``apt-get clean``
- # after each ``apt-get``
+ # after each ``apt-get``
# Run the rest of the commands as the ``postgres`` user created by the ``postgres-9.3`` package when it was ``apt-get installed``
USER postgres
@@ -88,7 +84,7 @@ Containers*](/userguide/dockerlinks), or we can access it from our host
> **Note**:
> The `--rm` removes the container and its image when
-> the container exists successfully.
+> the container exits successfully.
### Using container linking