From cde46792b1d0a0493186cd3663cb373d078fda91 Mon Sep 17 00:00:00 2001 From: Ben Potter Date: Sun, 16 Jan 2022 20:03:02 -0800 Subject: [PATCH 1/2] fix: clarify password reset process --- admin/access-control/password-reset.md | 3 ++- guides/troubleshooting/admin-pwd.md | 5 +++-- setup/docker.md | 5 +++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/admin/access-control/password-reset.md b/admin/access-control/password-reset.md index 4de90d4d7..436cc1afc 100644 --- a/admin/access-control/password-reset.md +++ b/admin/access-control/password-reset.md @@ -26,7 +26,8 @@ If you need to reset the password for a site admin, you can do so using coderd's > You should have the > [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) dependency > installed from when you first set up Coder; if not, please sure to install it -> before proceeding. +> before proceeding. If you are using Docker, follow +> [these instructions](../../setup/docker#admin-password) instead To reset the password, run the following in the terminal: diff --git a/guides/troubleshooting/admin-pwd.md b/guides/troubleshooting/admin-pwd.md index 2452b5e7f..c93bfde34 100644 --- a/guides/troubleshooting/admin-pwd.md +++ b/guides/troubleshooting/admin-pwd.md @@ -3,8 +3,9 @@ title: Admin password reset description: Learn how to resolve issues with resetting your admin password. --- -When resetting your Coder admin password in the terminal, you may encounter the -following error: +When +[resetting your Coder admin password](../../admin/access-control/password-reset.md#resetting-the-site-admin-password) +in the terminal, you may encounter the following error: ```console error: unable to upgrade connection: error dialing backend: remote error: tls: diff --git a/setup/docker.md b/setup/docker.md index 987faafde..7f7cf2678 100644 --- a/setup/docker.md +++ b/setup/docker.md @@ -91,6 +91,11 @@ For example: docker run --rm -it -p 7080:7080 -v /var/run/docker.sock:/var/run/docker.sock -v ~/.coder:/var/run/coder -e DEVURL_HOST="*.mycompany.com" codercom/coder:1.25.1 ``` +## Admin password + +If you want to set your admin password, perhaps if you forgot it, use the +`-e SUPER_ADMIN_PASSWORD=` flag with `docker run`. + ## Scaling Coder for Docker is limited by the resources of the machine on which it runs. We From 4b6ddf484e9e8682f048d020d579c142586d061a Mon Sep 17 00:00:00 2001 From: Katie Horne Date: Tue, 18 Jan 2022 08:37:33 -0600 Subject: [PATCH 2/2] edit text --- admin/access-control/password-reset.md | 2 +- setup/docker.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/access-control/password-reset.md b/admin/access-control/password-reset.md index 436cc1afc..56a91747a 100644 --- a/admin/access-control/password-reset.md +++ b/admin/access-control/password-reset.md @@ -27,7 +27,7 @@ If you need to reset the password for a site admin, you can do so using coderd's > [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) dependency > installed from when you first set up Coder; if not, please sure to install it > before proceeding. If you are using Docker, follow -> [these instructions](../../setup/docker#admin-password) instead +> [these instructions](../../setup/docker#admin-password) instead. To reset the password, run the following in the terminal: diff --git a/setup/docker.md b/setup/docker.md index 7f7cf2678..db6db38ea 100644 --- a/setup/docker.md +++ b/setup/docker.md @@ -93,8 +93,8 @@ docker run --rm -it -p 7080:7080 -v /var/run/docker.sock:/var/run/docker.sock -v ## Admin password -If you want to set your admin password, perhaps if you forgot it, use the -`-e SUPER_ADMIN_PASSWORD=` flag with `docker run`. +If you want to set (or reset) your admin password, use the +`-e SUPER_ADMIN_PASSWORD=` flag with the `docker run` command. ## Scaling