Docker容器Seafile修改密码

执行思路:

# 进入 docker 容器内部
sudo docker exec -it seafile bash

# 搜索 reset-admin.sh
find / -name reset-admin.sh

# 有以下两个匹配结果,使用第一个即可
# /opt/seafile/seafile-server-10.0.1/reset-admin.sh
# /opt/seafile/seafile-server-10.0.1/seahub/scripts/reset-admin.sh

详细修改记录:

root@debian:~# sudo docker exec -it seafile bash
root@df7ec4d1354e:/opt/seafile# find / -name reset-admin.sh
/opt/seafile/seafile-server-9.0.10/seahub/scripts/reset-admin.sh
/opt/seafile/seafile-server-9.0.10/reset-admin.sh
find: ‘/proc/49/map_files’: Permission denied
find: ‘/proc/50/map_files’: Permission denied
root@df7ec4d1354e:/opt/seafile# /opt/seafile/seafile-server-9.0.10/reset-admin.sh
/opt/seafile/seafile-server-9.0.10/seahub/thirdpart/requests/__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.13) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "
E-mail address: admin@debian.com
Password:
Password (again):
Superuser created successfully.
root@df7ec4d1354e:/opt/seafile#

发表回复

登录... 后才能评论