Introduction | AList Docs (nn.ci)
alist官方文档
查看管理员信息:
#低于v3.25.0版本
docker exec -it alist ./alist admin
#高于v3.25.0版本
3.25.0以上版本将密码改成加密方式存储的hash值,无法直接反算出密码,如果忘记了密码只能通过重新 随机生成
或者 手动设置
# 随机生成一个密码
docker exec -it alist ./alist admin random
# 手动设置一个密码,`NEW_PASSWORD`是指你需要设置的密码
docker exec -it alist ./alist admin set NEW_PASSWORD
发行版本
#docker-cli
docker run -d --restart=unless-stopped -v /etc/alist:/opt/alist/data -p 5244:5244 -e PUID=0 -e PGID=0 -e UMASK=022 --name="alist" xhofe/alist:latest
#docker-compose
version: '3.3'
services:
alist:
image: 'xhofe/alist:latest'
container_name: alist
volumes:
- '/etc/alist:/opt/alist/data'
ports:
- '5244:5244'
environment:
- PUID=0
- PGID=0
- UMASK=022
restart: unless-stopped
初次获取密码
在本机命令输入
docker logs alist
root@iZ2zegdd7snwio9bn1pvbnZ:~# docker logs alist
INFO[2024-04-26 11:05:36] reading config file: data/config.json
INFO[2024-04-26 11:05:36] config file not exists, creating default config file
INFO[2024-04-26 11:05:36] load config from env with prefix:
INFO[2024-04-26 11:05:36] init logrus...
INFO[2024-04-26 11:05:36] Successfully created the admin user and the initial password is: RML9x7pz
WARN[2024-04-26 11:05:36] init tool aria2 failed: failed get aria2 version: Post "http://localhost:6800/jsonrpc": dial tcp 127.0.0.1:6800: connect: connection refused
INFO[2024-04-26 11:05:36] init tool SimpleHttp success: ok
WARN[2024-04-26 11:05:36] init tool qBittorrent failed: Post "http://localhost:8080/api/v2/auth/login": dial tcp 127.0.0.1:8080: connect: connection refused
INFO[2024-04-26 11:05:36] start HTTP server @ 0.0.0.0:5244
INFO[2024-04-26 11:05:36] start S3 server @ 0.0.0.0:5246
INFO[2024-04-26 11:14:11] Shutdown server...
INFO[2024-04-26 11:14:11] Server exit
INFO[2024-04-26 11:14:21] reading config file: data/config.json
INFO[2024-04-26 11:14:21] load config from env with prefix:
INFO[2024-04-26 11:14:21] init logrus...
INFO[2024-04-26 11:14:21] init tool SimpleHttp success: ok
WARN[2024-04-26 11:14:21] init tool qBittorrent failed: Post "http://localhost:8080/api/v2/auth/login": dial tcp 127.0.0.1:8080: connect: connection refused
WARN[2024-04-26 11:14:21] init tool aria2 failed: failed get aria2 version: Post "http://localhost:6800/jsonrpc": dial tcp 127.0.0.1:6800: connect: connection refused
INFO[2024-04-26 11:14:21] start HTTP server @ 0.0.0.0:5244
INFO[2024-04-26 11:14:21] start S3 server @ 0.0.0.0:5246
登入“ 你的服务器:5244”
账号 admin
密码 RML9x7pz