[DOCS] Split long lines in Docker TLS getting-started snippet
and add warning for Windows users not using PowerShell (e.g. `cmd.exe`) to remove the `\` character and join lines. Also fix trailing whitespace character in link back to `docker.asciidoc`. Relates elastic/x-pack-elasticsearch#2999 Original commit: elastic/x-pack-elasticsearch@fe1c5dbc11
This commit is contained in:
parent
dc42887396
commit
a89bfe84ba
|
@ -15,7 +15,7 @@ https://www.elastic.co/subscriptions[available subscriptions].
|
||||||
[float]
|
[float]
|
||||||
==== Prepare the environment
|
==== Prepare the environment
|
||||||
|
|
||||||
<<docker,Install {es} with Docker>>.
|
<<docker,Install {es} with Docker>>.
|
||||||
|
|
||||||
Inside a new, empty, directory create the following **four files**:
|
Inside a new, empty, directory create the following **four files**:
|
||||||
|
|
||||||
|
@ -178,8 +178,14 @@ curl --cacert certs/ca/ca.crt -u elastic:PleaseChangeMe https://localhost:9200
|
||||||
all users:
|
all users:
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
|
WARNING: Windows users not running PowerShell will need to remove `\` and join lines in the snippet below.
|
||||||
["source","sh"]
|
["source","sh"]
|
||||||
----
|
----
|
||||||
docker exec es01 /bin/bash -c "bin/x-pack/setup-passwords auto --batch -Expack.ssl.certificate=x-pack/certificates/es01/es01.crt -Expack.ssl.certificate_authorities=x-pack/certificates/ca/ca.crt -Expack.ssl.key=x-pack/certificates/es01/es01.key --url https://localhost:9200"
|
docker exec es01 /bin/bash -c "bin/x-pack/setup-passwords \
|
||||||
|
auto --batch \
|
||||||
|
-Expack.ssl.certificate=x-pack/certificates/es01/es01.crt \
|
||||||
|
-Expack.ssl.certificate_authorities=x-pack/certificates/ca/ca.crt \
|
||||||
|
-Expack.ssl.key=x-pack/certificates/es01/es01.key \
|
||||||
|
--url https://localhost:9200"
|
||||||
----
|
----
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in New Issue