wso2stratos에 couchdb 카트리지를 성공적으로 배포했으며 구성원이 성공적으로 활성화되었습니다. dockerfile 구현을 위해 this git 코드를 사용했습니다. 그것은 내가 왜 그것이 거기에 있는지 전혀 모른다라고하는 아래의 선을 포함한다! 누군가 아래의 코드를 설명 할 수 있습니까?Couchdb 카트리지가 docker 이미지에서 응답하지 않습니다.
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"]
URL과 해당 작업이 완벽하게 작동합니다.
나는 단지 SSH 고정 표시기 컨테이너와 CouchDB를 시작,
[email protected]:/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
에 모두를 브라우저를하려고합니다.
누군가 내 데이터베이스를보고 데이터베이스 창을 만들 수없는 이유를 말해 줄 수 있습니까?
# Set port and address for couchdb to bind too.
# Remember these are addresses inside the container
# and not necessarily publicly available.
# See http://docs.couchdb.org/en/latest/config/http.html
RUN printf "[httpd]\nport = 8101\nbind_address = 0.0.0.0" >
/usr/local/etc/couchdb/local.d/docker.ini
# Tell docker that this port needs to be exposed.
# You still need to run -P when running container
EXPOSE 8101
# This is the command which is run automatically when container is run
CMD ["/usr/local/bin/couchdb"]
당신이 그것을 액세스 할 수없는 이유에 관해서는, 어떤 당신의 고정 표시기 실행 명령의 모습처럼, 당신은 포트를 노출 않았다 않습니다 그 라인이하는 일에 대한 첫 번째 질문에 대한
감사합니다. @Usman Ismail, 내 문제를 명확히 설명합니다. – tkr