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#
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。