{"action":"created","issue":{"url":"https://api.github.com/repos/dianping/cat/issues/1763","repository_url":"https://api.github.com/repos/dianping/cat","labels_url":"https://api.github.com/repos/dianping/cat/issues/1763/labels{/name}","comments_url":"https://api.github.com/repos/dianping/cat/issues/1763/comments","events_url":"https://api.github.com/repos/dianping/cat/issues/1763/events","html_url":"https://github.com/dianping/cat/issues/1763","id":465172308,"node_id":"MDU6SXNzdWU0NjUxNzIzMDg=","number":1763,"title":"docker 安装的 cat，一直报错：出问题CAT的服务端:[10.0.1.xxx]","user":{"login":"wxiaoguang","id":2114189,"node_id":"MDQ6VXNlcjIxMTQxODk=","avatar_url":"https://avatars1.githubusercontent.com/u/2114189?v=4","gravatar_id":"","url":"https://api.github.com/users/wxiaoguang","html_url":"https://github.com/wxiaoguang","followers_url":"https://api.github.com/users/wxiaoguang/followers","following_url":"https://api.github.com/users/wxiaoguang/following{/other_user}","gists_url":"https://api.github.com/users/wxiaoguang/gists{/gist_id}","starred_url":"https://api.github.com/users/wxiaoguang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wxiaoguang/subscriptions","organizations_url":"https://api.github.com/users/wxiaoguang/orgs","repos_url":"https://api.github.com/users/wxiaoguang/repos","events_url":"https://api.github.com/users/wxiaoguang/events{/privacy}","received_events_url":"https://api.github.com/users/wxiaoguang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-07-08T10:13:59Z","updated_at":"2019-07-09T05:25:11Z","closed_at":null,"author_association":"NONE","body":"docker 安装的 cat，应用客户端可以使用。\r\n\r\n但是 web 界面中一直报错：出问题CAT的服务端:[10.0.1.xxx]\r\n\r\n从 docker 内和外都可以正常连接 10.0.1.xxx:2280 和 8080 端口\r\n\r\n\r\ndocker ps:\r\n```\r\ncat:3.0.0      0.0.0.0:2280->2280/tcp, 0.0.0.0:8080->8080/tcp                                                                                                   \r\n```\r\n\r\ndocker host:\r\n```\r\ndocker0   Link encap:Ethernet  HWaddr 02:42:11:64:58:4e\r\n          inet addr:172.17.0.1  Bcast:172.17.255.255  Mask:255.255.0.0\r\n          inet6 addr: fe80::42:11ff:fe64:584e/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:1072245652 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:1292589279 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:0\r\n          RX bytes:97230823950 (97.2 GB)  TX bytes:1300090179127 (1.3 TB)\r\n\r\nens3      Link encap:Ethernet  HWaddr 02:ad:2d:7d:06:56\r\n          inet addr:10.0.1.xxx  Bcast:10.0.1.255  Mask:255.255.255.0\r\n          inet6 addr: fe80::ad:2dff:fe7d:656/64 Scope:Link\r\n          UP BROADCAST RUNNING MULTICAST  MTU:9001  Metric:1\r\n          RX packets:5149058993 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:4081208742 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1000\r\n          RX bytes:3021735407361 (3.0 TB)  TX bytes:4273743704635 (4.2 TB)\r\n```\r\n\r\ndocker container:\r\n```\r\neth0      Link encap:Ethernet  HWaddr 02:42:AC:11:00:05\r\n          inet addr:172.17.0.5  Bcast:172.17.255.255  Mask:255.255.0.0\r\n          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1\r\n          RX packets:262922 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:216359 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:0\r\n          RX bytes:300440879 (286.5 MiB)  TX bytes:22343941 (21.3 MiB)\r\n\r\nlo        Link encap:Local Loopback\r\n          inet addr:127.0.0.1  Mask:255.0.0.0\r\n          UP LOOPBACK RUNNING  MTU:65536  Metric:1\r\n          RX packets:2623 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:2623 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:1\r\n          RX bytes:2484865 (2.3 MiB)  TX bytes:2484865 (2.3 MiB)\r\n```\r\n\r\n\r\n客户端路由：\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<router-config backup-server=\"10.0.1.xxx\" backup-server-port=\"2280\">\r\n   <default-server id=\"10.0.1.xxx\" weight=\"1.0\" port=\"2280\" enable=\"true\"/>\r\n   <network-policy id=\"default\" title=\"default\" block=\"false\" server-group=\"default_group\">\r\n   </network-policy>\r\n   <server-group id=\"default_group\" title=\"default-group\">\r\n      <group-server id=\"10.0.1.xxx\"/>\r\n   </server-group>\r\n</router-config>\r\n```"},"comment":{"url":"https://api.github.com/repos/dianping/cat/issues/comments/509493284","html_url":"https://github.com/dianping/cat/issues/1763#issuecomment-509493284","issue_url":"https://api.github.com/repos/dianping/cat/issues/1763","id":509493284,"node_id":"MDEyOklzc3VlQ29tbWVudDUwOTQ5MzI4NA==","user":{"login":"wxiaoguang","id":2114189,"node_id":"MDQ6VXNlcjIxMTQxODk=","avatar_url":"https://avatars1.githubusercontent.com/u/2114189?v=4","gravatar_id":"","url":"https://api.github.com/users/wxiaoguang","html_url":"https://github.com/wxiaoguang","followers_url":"https://api.github.com/users/wxiaoguang/followers","following_url":"https://api.github.com/users/wxiaoguang/following{/other_user}","gists_url":"https://api.github.com/users/wxiaoguang/gists{/gist_id}","starred_url":"https://api.github.com/users/wxiaoguang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wxiaoguang/subscriptions","organizations_url":"https://api.github.com/users/wxiaoguang/orgs","repos_url":"https://api.github.com/users/wxiaoguang/repos","events_url":"https://api.github.com/users/wxiaoguang/events{/privacy}","received_events_url":"https://api.github.com/users/wxiaoguang/received_events","type":"User","site_admin":false},"created_at":"2019-07-09T05:25:11Z","updated_at":"2019-07-09T05:25:11Z","author_association":"NONE","body":"最终解决办法是 docker 里面的 tomcat 启动的时候，指定  -Dhost.ip=10.0.1.xxx"}}
{"actor":{"display_login":"wxiaoguang"}}