diff --git a/docs/en/deploy/astrbot/docker.md b/docs/en/deploy/astrbot/docker.md index 98efbdfa1..ac575e901 100644 --- a/docs/en/deploy/astrbot/docker.md +++ b/docs/en/deploy/astrbot/docker.md @@ -133,6 +133,8 @@ If you forget the dashboard password, you can reset it with the built-in AstrBot sudo docker exec -it astrbot astrbot password ``` +The first `astrbot` is the container name; replace it with your actual container name (check with `sudo docker ps`). + Follow the prompt to enter a new password. To also change the username: ```bash diff --git a/docs/en/faq.md b/docs/en/faq.md index aaafc3060..c532689c2 100644 --- a/docs/en/faq.md +++ b/docs/en/faq.md @@ -38,6 +38,8 @@ sudo docker exec -it astrbot astrbot password sudo docker restart astrbot # the new password takes effect after a restart ``` +The first `astrbot` is the container name; replace it with your actual container name (check with `sudo docker ps`). + To also change the username, add the `--username` option: `sudo docker exec -it astrbot astrbot password --username `. #### uv / pip Package Deployment diff --git a/docs/zh/deploy/astrbot/docker.md b/docs/zh/deploy/astrbot/docker.md index c944cb161..46176c08a 100644 --- a/docs/zh/deploy/astrbot/docker.md +++ b/docs/zh/deploy/astrbot/docker.md @@ -149,6 +149,8 @@ docker run -itd -p 6185:6185 -p 6199:6199 -e TZ=Asia/Shanghai -v "${PWD}\data:/A sudo docker exec -it astrbot astrbot password ``` +其中第一个 `astrbot` 是容器名,如果你的容器名不同,请相应替换(可通过 `sudo docker ps` 查看容器名)。 + 按提示输入新密码即可。如需同时修改用户名: ```bash diff --git a/docs/zh/faq.md b/docs/zh/faq.md index d2a424778..7c2944091 100644 --- a/docs/zh/faq.md +++ b/docs/zh/faq.md @@ -39,6 +39,8 @@ sudo docker exec -it astrbot astrbot password sudo docker restart astrbot # 修改后需要重启容器才能生效 ``` +其中第一个 `astrbot` 是容器名,如果你的容器名不同,请相应替换(可通过 `sudo docker ps` 查看容器名)。 + 如需同时修改用户名,可以加 `--username` 参数:`sudo docker exec -it astrbot astrbot password --username <新用户名>`。 #### uv / pip 软件包部署