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/running_redis_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/running_redis_service.md')
-rw-r--r-- | docs/sources/examples/running_redis_service.md | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/sources/examples/running_redis_service.md b/docs/sources/examples/running_redis_service.md index 0eeef0625d..6d052da09e 100644 --- a/docs/sources/examples/running_redis_service.md +++ b/docs/sources/examples/running_redis_service.md @@ -13,8 +13,7 @@ Firstly, we create a `Dockerfile` for our new Redis image. FROM ubuntu:12.10 - RUN apt-get update - RUN apt-get -y install redis-server + RUN apt-get update && apt-get install -y redis-server EXPOSE 6379 ENTRYPOINT ["/usr/bin/redis-server"] @@ -49,9 +48,9 @@ container to only this container. Once inside our freshly created container we need to install Redis to get the `redis-cli` binary to test our connection. - $ apt-get update - $ apt-get -y install redis-server - $ service redis-server stop + $ sudo apt-get update + $ sudo apt-get install redis-server + $ sudo service redis-server stop As we've used the `--link redis:db` option, Docker has created some environment variables in our web application container. |