mirror of
https://github.com/AstrBotDevs/AstrBot.git
synced 2026-10-16 06:58:51 +08:00
docs: clarify that the first astrbot in docker exec is the container name
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 <new-username>`.
|
||||
|
||||
#### uv / pip Package Deployment
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 软件包部署
|
||||
|
||||
Reference in New Issue
Block a user