从shinyproxy

时间:2018-05-29 08:46:25

标签: r docker shiny plumber shinyproxy

我部署了一个管道工API,可以访问:

  

卷曲-X GET“http://vps546862.ovh.net:8000/dep?q=Ain” - H“接受:application / json”

它在我的计算机上工作正常,甚至在没有shinyproxy的服务器上的最小容器(ubuntu + curl)内。

但是在具有shinyproxy的服务器上,这不再起作用了。相反,我收到错误消息:

  

卷曲:(7)无法连接到vps546862.ovh.net端口8000:无主机路由

在shinyproxy和由手动启动的容器内部启动的容器内部不起作用。

我在docker上做的唯一配置就是这个:

  

ExecStart = / usr / bin / dockerd -H fd:// -D -H tcp://127.0.0.1:2375

除了这个问题,一切正常......

使用shinyproxy从同一服务器上的高山容器输出:

docker run --rm -it alpine /bin/ash    
/ # ping vps546862.ovh.net   
PING vps546862.ovh.net (54.38.181.183): 56 data bytes
64 bytes from 54.38.181.183: seq=0 ttl=64 time=0.115 ms
64 bytes from 54.38.181.183: seq=1 ttl=64 time=0.132 ms
64 bytes from 54.38.181.183: seq=2 ttl=64 time=0.180 ms
64 bytes from 54.38.181.183: seq=3 ttl=64 time=0.142 ms
--- vps546862.ovh.net ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.115/0.142/0.180 ms
/ # ip route
default via 172.17.0.1 dev eth0
172.17.0.0/16 dev eth0 scope link  src 172.17.0.4
/ # curl -X GET "http://vps546862.ovh.net:8000/dep?q=Ain" -H "accept: application/json"
curl: (7) Failed to connect to vps546862.ovh.net port 8000: Host is unreachable

0 个答案:

没有答案