ONLYOFFICE / docker-onlyoffice-owncloud

MIT License
98 stars 32 forks source link

unable to connect #24

Open changchichung opened 6 years ago

changchichung commented 6 years ago

log

2018-09-17 17:39:37 [minion@hqs006 docker-onlyoffice-owncloud]$ docker logs 663b94b383f0
2018/09/17 09:32:07 [emerg] 1#1: host not found in upstream "onlyoffice-document-server" in /etc/nginx/nginx.conf:93
nginx: [emerg] host not found in upstream "onlyoffice-document-server" in /etc/nginx/nginx.conf:93
2018-09-17 17:40:07 [minion@hqs006 docker-onlyoffice-owncloud]$ 

but I can ping the onlyoffice-document-server inside the container

2018-09-17 17:44:51 [minion@hqs006 docker-onlyoffice-owncloud]$ docker exec -it 663b94b383f0 /bin/bash
root@663b94b383f0:/# ping onlyoffice-document-server
PING onlyoffice-document-server (172.19.0.4) 56(84) bytes of data.
64 bytes from onlyoffice-document-server.dockeronlyofficeowncloud_onlyoffice (172.19.0.4): icmp_seq=1 ttl=64 time=0.048 ms
64 bytes from onlyoffice-document-server.dockeronlyofficeowncloud_onlyoffice (172.19.0.4): icmp_seq=2 ttl=64 time=0.068 ms
^C
--- onlyoffice-document-server ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1026ms
rtt min/avg/max/mdev = 0.048/0.058/0.068/0.010 ms
root@663b94b383f0:/# 

any suggestions ?

ibnpetr commented 6 years ago

Try adding Docker DNS resolver to the nginx config 127.0.0.11 ipv6=off; If it doesn't help replace the container name onlyoffice-document-server with its ip address