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/articles/cfengine_process_management.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/articles/cfengine_process_management.md')
-rw-r--r-- | docs/sources/articles/cfengine_process_management.md | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/sources/articles/cfengine_process_management.md b/docs/sources/articles/cfengine_process_management.md index 6bb4df66ae..a9441a6d35 100644 --- a/docs/sources/articles/cfengine_process_management.md +++ b/docs/sources/articles/cfengine_process_management.md @@ -65,13 +65,12 @@ The first two steps can be done as part of a Dockerfile, as follows. FROM ubuntu MAINTAINER Eystein Måløy Stenberg <eytein.stenberg@gmail.com> - RUN apt-get -y install wget lsb-release unzip ca-certificates + RUN apt-get update && apt-get install -y wget lsb-release unzip ca-certificates # install latest CFEngine RUN wget -qO- http://cfengine.com/pub/gpg.key | apt-key add - RUN echo "deb http://cfengine.com/pub/apt $(lsb_release -cs) main" > /etc/apt/sources.list.d/cfengine-community.list - RUN apt-get update - RUN apt-get install cfengine-community + RUN apt-get update && apt-get install -y cfengine-community # install cfe-docker process management policy RUN wget https://github.com/estenberg/cfe-docker/archive/master.zip -P /tmp/ && unzip /tmp/master.zip -d /tmp/ @@ -80,7 +79,7 @@ The first two steps can be done as part of a Dockerfile, as follows. RUN rm -rf /tmp/cfe-docker-master /tmp/master.zip # apache2 and openssh are just for testing purposes, install your own apps here - RUN apt-get -y install openssh-server apache2 + RUN apt-get update && apt-get install -y openssh-server apache2 RUN mkdir -p /var/run/sshd RUN echo "root:password" | chpasswd # need a password for ssh |