diff options
author | Fred Lifton <fred.lifton@docker.com> | 2014-08-27 09:05:02 -0700 |
---|---|---|
committer | Fred Lifton <fred.lifton@docker.com> | 2014-08-27 09:05:02 -0700 |
commit | aba575c7546ba7d2914f0c3b8b3450667b3959ac (patch) | |
tree | d0158f0eab4b9710815c1a87e2ef3699e5185205 /docs/sources/examples/postgresql_service.md | |
parent | 4b54484843eacf6ce57d2fc16e6aacc70d964041 (diff) | |
parent | 7565cb309988345f9ed9daba87052f2bba116033 (diff) | |
download | docker-docs-1.1.tar.gz |
Merge pull request #7755 from SvenDowideit/post-1.1.2-docs-update-1docs-1.1
Post 1.1.2 docs update 1
Diffstat (limited to 'docs/sources/examples/postgresql_service.md')
-rw-r--r-- | docs/sources/examples/postgresql_service.md | 10 |
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 |