如何成功运行docker?

问题描述 投票:0回答:1

我正在尝试在此处运行docker示例。

http://chembl.blogspot.com/2020/01/new-chembl-ligand-based-target.html

我可以正确启动docker。

docker run -p 8080:8080 chembl/mcp:25

但是当我运行这个时

curl -X POST -H 'Accept: */*' -H 'Content-Type: application/json' -d '{"smiles": "CC(=O)Oc1ccccc1C(=O)O"}' http://127.0.0.1:8080

我收到了这些日志消息。

2020/03/26 13:21:38 Started logging stderr from function.
2020/03/26 13:21:39 Started logging stdout from function.
2020/03/26 13:21:39 OperationalMode: http
2020/03/26 13:21:39 Timeouts: read: 10s, write: 10s hard: 10s.
2020/03/26 13:21:39 Listening on port: 8080
2020/03/26 13:21:39 Writing lock-file to: /tmp/.lock
2020/03/26 13:21:39 Metrics listening on port: 8081
2020/03/26 13:24:53 Upstream HTTP request error: Post http://127.0.0.1:5000/: dial tcp 127.0.0.1:5000: connect: connection refused

我使用Mac OS X。

有人知道如何解决该问题吗?谢谢。

macos docker macos-mojave
1个回答
0
投票

我能够遇到相同的问题并设法解决。我要做的就是增加用于Mac OS X的Docker桌面(更具体地说是RAM)上的资源。另外,请等待一两分钟,因为模块加载似乎非常耗费资源。

© www.soinside.com 2019 - 2024. All rights reserved.