From 424e7c4c635c320c6cace6352569a594969f3ce9 Mon Sep 17 00:00:00 2001 From: Michael Friis Date: Fri, 5 Jan 2018 10:59:44 -0800 Subject: [PATCH] clean up whitespace (#5665) --- engine/swarm/configs.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/swarm/configs.md b/engine/swarm/configs.md index 3292120b0e..28ee31b19a 100644 --- a/engine/swarm/configs.md +++ b/engine/swarm/configs.md @@ -116,7 +116,7 @@ real-world example, continue to you can customize the file name on the container using the `target` option. ```bash - $ docker service create --name redis --config my-config redis:alpine + $ docker service create --name redis --config my-config redis:alpine ``` 3. Verify that the task is running without issues using `docker service ps`. If @@ -229,7 +229,7 @@ This example assumes that you have PowerShell installed. --name my-iis --publish published=8000,target=8000 --config src=homepage,target="\inetpub\wwwroot\index.html" - microsoft/iis:nanoserver + microsoft/iis:nanoserver ``` 5. Access the IIS service at `http://localhost:8000/`. It should serve @@ -249,7 +249,7 @@ This example is divided into two parts. [The first part](#generate-the-site-certificate) is all about generating the site certificate and does not directly involve Docker configs at all, but it sets up [the second part](#configure-the-nginx-container), where you store -and use the site certificate as a series of secrets and the Nginx configuration +and use the site certificate as a series of secrets and the Nginx configuration as a config. #### Generate the site certificate @@ -293,7 +293,7 @@ generate the site key and certificate, name the files `site.key` and 4. Sign the certificate. ```bash - $ openssl x509 -req -days 3650 -in "root-ca.csr" \ + $ openssl x509 -req -days 3650 -in "root-ca.csr" \ -signkey "root-ca.key" -sha256 -out "root-ca.crt" \ -extfile "root-ca.cnf" -extensions \ root_ca @@ -312,7 +312,7 @@ generate the site key and certificate, name the files `site.key` and -subj '/C=US/ST=CA/L=San Francisco/O=Docker/CN=localhost' ``` -7. Configure the site certificate. Edit a new file called `site.cnf` and +7. Configure the site certificate. Edit a new file called `site.cnf` and paste the following contents into it. This constrains the site certificate so that it can only be used to authenticate a server and can't be used to sign certificates. @@ -331,7 +331,7 @@ generate the site key and certificate, name the files `site.key` and ```bash $ openssl x509 -req -days 750 -in "site.csr" -sha256 \ - -CA "root-ca.crt" -CAkey "root-ca.key" -CAcreateserial \ + -CA "root-ca.crt" -CAkey "root-ca.key" -CAcreateserial \ -out "site.crt" -extfile "site.cnf" -extensions server ```