我解决了。需要修改一下 http 的配置。
将 host 改为 0.0.0.0 。默认是 localhost
M
MyBaron 发布的帖子
-
RE: Dockerfile for mirai-api-http v2
-
RE: Dockerfile for mirai-api-http v2
@wssy001 容器日志也正常
2021-12-26 07:07:30 I/http adapter: >>> [http adapter] is listening at http://localhost:8080
-
RE: Dockerfile for mirai-api-http v2
@wssy001 我映射了
zhaozuohong/mah "/app/mcl" 2 hours ago Up 3 minutes 0.0.0.0:8080->8080/tcp mirai
-
RE: Dockerfile for mirai-api-http v2
你好,请问访问8080端口。拒绝连接呢?我是在宿主机发起请求的
curl -X POST -H "Content-Type: application/json" -d '{"verifyKey": "xxxx"}' http://127.0.0.1:8080/verify
curl: (7) Failed connect to 127.0.0.1:80; 拒绝连接