我成功地将一个 couchdb 墨盒部署到 wso2stratos 并且成员成功激活。对于 dockerfile 的实现,我使用了这个git 代码。其中包括以下行,我不知道它为什么在那里!有人可以解释下面的代码吗?
RUN printf "[httpd]\nport = 8101\nbind_address = 0.0.0.0" > /usr/local/etc/couchdb/local.d/docker.ini
EXPOSE 8101
CMD ["/usr/local/bin/couchdb"]
我尝试指向http://127.0.0.1:5984/_utils/spec/run.html
url 并且它工作得很好。
我只是通过 SSH 连接到 docker 容器并启动 couchdb,
root@instance-00000001:/usr/local/etc/couchdb/local.d# couchdb couchdb
Apache CouchDB 1.6.1 (LogLevel=info) is starting.
Apache CouchDB has started. Time to relax.
[info] [<0.32.0>] Apache CouchDB has started on http://0.0.0.0:8101/
然后我尝试将浏览器指向http://0.0.0.0:8101/
并且http://127.0.0.1:5984/_utils/index.html
它们都不起作用。
有人能告诉我为什么我不能查看我的数据库并创建数据库窗口吗?