{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/docker/issues/9","labels_url":"https://api.github.com/repos/couchbase/docker/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/docker/issues/9/comments","events_url":"https://api.github.com/repos/couchbase/docker/issues/9/events","html_url":"https://github.com/couchbase/docker/issues/9","id":95835092,"number":9,"title":"Run couchbase-server/4.0.0-beta with N1QL","user":{"login":"martinmicunda","id":1643606,"avatar_url":"https://avatars.githubusercontent.com/u/1643606?v=3","gravatar_id":"","url":"https://api.github.com/users/martinmicunda","html_url":"https://github.com/martinmicunda","followers_url":"https://api.github.com/users/martinmicunda/followers","following_url":"https://api.github.com/users/martinmicunda/following{/other_user}","gists_url":"https://api.github.com/users/martinmicunda/gists{/gist_id}","starred_url":"https://api.github.com/users/martinmicunda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinmicunda/subscriptions","organizations_url":"https://api.github.com/users/martinmicunda/orgs","repos_url":"https://api.github.com/users/martinmicunda/repos","events_url":"https://api.github.com/users/martinmicunda/events{/privacy}","received_events_url":"https://api.github.com/users/martinmicunda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-18T15:46:15Z","updated_at":"2015-07-18T16:38:02Z","closed_at":null,"body":"Hi,\r\n\r\nI tried run your docker `couchbase-server/4.0.0-beta` image with N1QL however I am not able to query through `curl`. I can't see in your [Dockerfile](https://github.com/couchbase/docker/blob/master/enterprise%2Fcouchbase-server%2F4.0.0-beta%2FDockerfile) that you are exposing port `8093`, is this port still required for Couchbase 4 to use N1QL? \r\n\r\n```bash\r\ncurl -v http://localhost:8093/query/service -d \"statement=SELECT * FROM default WHERE type = 'partner'\" \r\n```\r\n\r\n```bash\r\n Hostname was NOT found in DNS cache\r\n*   Trying 127.0.0.1...\r\n* Connected to localhost (127.0.0.1) port 8093 (#0)\r\n> POST /query/service HTTP/1.1\r\n> User-Agent: curl/7.35.0\r\n> Host: localhost:8093\r\n> Accept: */*\r\n> Content-Length: 54\r\n> Content-Type: application/x-www-form-urlencoded\r\n> \r\n* upload completely sent off: 54 out of 54 bytes\r\n* Empty reply from server\r\n* Connection #0 to host localhost left intact\r\ncurl: (52) Empty reply from server\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/couchbase/docker/issues/comments/122562970","html_url":"https://github.com/couchbase/docker/issues/9#issuecomment-122562970","issue_url":"https://api.github.com/repos/couchbase/docker/issues/9","id":122562970,"user":{"login":"geraldss","id":4130111,"avatar_url":"https://avatars.githubusercontent.com/u/4130111?v=3","gravatar_id":"","url":"https://api.github.com/users/geraldss","html_url":"https://github.com/geraldss","followers_url":"https://api.github.com/users/geraldss/followers","following_url":"https://api.github.com/users/geraldss/following{/other_user}","gists_url":"https://api.github.com/users/geraldss/gists{/gist_id}","starred_url":"https://api.github.com/users/geraldss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geraldss/subscriptions","organizations_url":"https://api.github.com/users/geraldss/orgs","repos_url":"https://api.github.com/users/geraldss/repos","events_url":"https://api.github.com/users/geraldss/events{/privacy}","received_events_url":"https://api.github.com/users/geraldss/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T16:38:02Z","updated_at":"2015-07-18T16:38:02Z","body":"@martinmicunda, I ran your curl command locally, but not in docker:\r\n\r\nGeralds-MacBook-Pro-2:~ gerald$ curl -v http://localhost:8093/query/service -d \"statement=SELECT * FROM default WHERE type = 'partner'\"\r\n* Adding handle: conn: 0x7faf6300a600\r\n* Adding handle: send: 0\r\n* Adding handle: recv: 0\r\n* Curl_addHandleToPipeline: length: 1\r\n* - Conn 0 (0x7faf6300a600) send_pipe: 1, recv_pipe: 0\r\n* About to connect() to localhost port 8093 (#0)\r\n*   Trying ::1...\r\n* Connected to localhost (::1) port 8093 (#0)\r\n> POST /query/service HTTP/1.1\r\n> User-Agent: curl/7.30.0\r\n> Host: localhost:8093\r\n> Accept: */*\r\n> Content-Length: 54\r\n> Content-Type: application/x-www-form-urlencoded\r\n> \r\n* upload completely sent off: 54 out of 54 bytes\r\n< HTTP/1.1 200 OK\r\n< Content-Length: 304\r\n< Content-Type: application/json; version=0.8.1\r\n< Date: Sat, 18 Jul 2015 16:36:12 GMT\r\n< \r\n{\r\n    \"requestID\": \"3df5b4af-34ab-4df6-97ff-ae7a1f0a588c\",\r\n    \"signature\": {\r\n        \"*\": \"*\"\r\n    },\r\n    \"results\": [\r\n    ],\r\n    \"status\": \"success\",\r\n    \"metrics\": {\r\n        \"elapsedTime\": \"57.459141ms\",\r\n        \"executionTime\": \"57.139856ms\",\r\n        \"resultCount\": 0,\r\n        \"resultSize\": 0\r\n    }\r\n}\r\n* Connection #0 to host localhost left intact\r\n"}}