Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker版使用unix监听后无法重启容器 #1262

Closed
97xiami opened this issue Apr 30, 2022 · 4 comments
Closed

docker版使用unix监听后无法重启容器 #1262

97xiami opened this issue Apr 30, 2022 · 4 comments

Comments

@97xiami
Copy link

97xiami commented Apr 30, 2022

重启容器报错unix文件已存在

@vvisionnn
Copy link
Member

Please follow the issue template, attach the step to reproduce or the log file behind, Thanks.

@97xiami
Copy link
Author

97xiami commented May 4, 2022

Please follow the issue template, attach the step to reproduce or the log file behind, Thanks.

[Info] 2022-05-04 21:50:22 初始化数据库连接
[Info] 2022-05-04 21:50:22 数据库版本匹配,跳过数据库迁 移
[Info] 2022-05-04 21:50:22 初始化任务队列,WorkerNum = 10
[Info] 2022-05-04 21:50:22 初始化定时任务...
[Info] 2022-05-04 21:50:22 当前运行模式:Master
[Info] 2022-05-04 21:50:22 开始监听 /run/cloudreve.sock
[Error] 2022-05-04 21:50:22 无法监听[/run/cloudreve.sock],listen unix /run/cloudreve.sock: bind: address already in use
docker容器启动以后,使用docker restart cloudreve就会出现这种情况

@GreenTeodoro839
Copy link

@97xiami docker不要使用unix监听,容器无法操作宿主机相关目录

@97xiami
Copy link
Author

97xiami commented May 4, 2022

@97xiami docker不要使用unix监听,容器无法操作宿主机相关目录

好吧,nginx能用unix监听

vvisionnn added a commit to vvisionnn/Cloudreve that referenced this issue May 5, 2022
@97xiami 97xiami closed this as completed May 5, 2022
HFO4 pushed a commit that referenced this issue May 9, 2022
* fix: delete socket file before run (fixed #1262)

* refactor: remove useless logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants