From 200f306d70ac30f15d473320d66a4171bf123f2e Mon Sep 17 00:00:00 2001 From: Catherine Luse Date: Wed, 1 Sep 2021 19:02:21 -0700 Subject: [PATCH] Add Docker command to get bootstrap password --- .../installation/resources/bootstrap-password/_index.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/rancher/v2.6/en/installation/resources/bootstrap-password/_index.md b/content/rancher/v2.6/en/installation/resources/bootstrap-password/_index.md index ac6534aafdd..f0875b5e8a2 100644 --- a/content/rancher/v2.6/en/installation/resources/bootstrap-password/_index.md +++ b/content/rancher/v2.6/en/installation/resources/bootstrap-password/_index.md @@ -19,4 +19,10 @@ kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{ ### Specifying the Bootstrap Password in Docker Installs -For a Docker install, you can specify the bootstrap password by passing `-e CATTLE_BOOTSTRAP_PASSWORD=password` to the Docker install command. \ No newline at end of file +For a Docker install, you can specify the bootstrap password by passing `-e CATTLE_BOOTSTRAP_PASSWORD=password` to the Docker install command. + +The password will be stored in the Docker container logs. After Rancher is installed, the UI will show instructions for how to retrieve the password using the Docker container ID: + +``` +docker logs container-id 2>&1 | grep "Bootstrap Password:" +``` \ No newline at end of file