to2false opened a new issue #42: etcd-server could not be resolved (3: Host not 
found)
URL: https://github.com/apache/incubator-apisix-docker/issues/42
 
 
   I created a network named gateway, then let ectd-server and test-api-gateway 
joined this network.
   
   ```
   docker exec -it test-api-gateway sh
   ```
   ```
   /usr/local/apisix # ping etcd-server
   PING etcd-server (172.19.0.2): 56 data bytes
   64 bytes from 172.19.0.2: seq=0 ttl=64 time=0.272 ms
   64 bytes from 172.19.0.2: seq=1 ttl=64 time=0.071 ms
   64 bytes from 172.19.0.2: seq=2 ttl=64 time=0.068 ms
   64 bytes from 172.19.0.2: seq=3 ttl=64 time=0.116 ms
   64 bytes from 172.19.0.2: seq=4 ttl=64 time=0.078 ms
   64 bytes from 172.19.0.2: seq=5 ttl=64 time=0.066 ms
   ```
   
   But got error as the title after request
   ```
   curl http://127.0.0.1:8080/apisix/admin/services/1 -X PUT -d '
   {
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "127.0.0.1:9081": 1
           }
       }
   }'
   {"error_msg":"etcd-server could not be resolved (3: Host not found)"}
   ```
   -------
   **Specify ip works**
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to