From 7be3bf2cd972589b0f87b960a1c90989c93eab02 Mon Sep 17 00:00:00 2001 From: Alexandre Viau Date: Fri, 23 May 2014 17:49:33 -0400 Subject: [PATCH 1/2] more comprehensible --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c066d4..3baff1e 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ it will show the download as "in progress" but it will remain stuck. You can download it with Firefox; or you can transfer it with another way: Dropbox, USB, micro-SD card... -If you reboot the server (or stop the container), if you `docker run` +If you reboot the server (or stop the container) and you `docker run` again, you will create a new service (with a new configuration) and you will have to re-download the configuration file. However, you can use `docker start` to restart the service without touching the configuration. From 93d12716c58d87ec140dbf2a2e3c1f26ed381a7c Mon Sep 17 00:00:00 2001 From: Alexandre Viau Date: Fri, 23 May 2014 18:31:46 -0400 Subject: [PATCH 2/2] commands were deprecated --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3baff1e..89a1c48 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ Quick instructions: ```bash -CID=$(docker run -d -privileged -p 1194:1194/udp -p 443:443/tcp jpetazzo/openvpn) -docker run -t -i -p 8080:8080 -volumes-from $CID jpetazzo/openvpn serveconfig +CID=$(docker run -d --privileged -p 1194:1194/udp -p 443:443/tcp jpetazzo/openvpn) +docker run -t -i -p 8080:8080 --volumes-from $CID jpetazzo/openvpn serveconfig ``` Now download the file located at the indicated URL. You will get a @@ -48,7 +48,7 @@ on 443/tcp). The configuration is located in `/etc/openvpn`, and the Dockerfile declares that directory as a volume. It means that you can start another -container with the `-volumes-from` flag, and access the configuration. +container with the `--volumes-from` flag, and access the configuration. Conveniently, `jpetazzo/openvpn` comes with a script called `serveconfig`, which starts a pseudo HTTPS server on `8080/tcp`. The pseudo server does not even check the HTTP request; it just sends the HTTP status line,