我在 GCE 实例上的 docker 中有一个 couchbase-server。
尝试使用此包https://godoc.org/github.com/couchbase/go-couchbase#GetBucket并按照示例进行操作,但出现超时错误。
2015/04/06 17:32:34 Trying with selected node 0
2015/04/06 17:33:49 HTTP request returned error Get http://172.17.0.2:8092/default/_design/someKey: dial tcp 172.17.0.2:8092: operation timed out
2015/04/06 17:33:49 error Get http://172.17.0.2:8092/default/_design/someKey: dial tcp 172.17.0.2:8092: operation timed out
exit status 1
我尝试在与我的 docker 相同的主机上执行我的 golang 脚本,它工作正常。但从其他机器或本地,它不会工作