-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot resolve localhost #21
Comments
@ekho Here is my failed attempt to reproduce your bug: With localhost:
With 127.0.0.1:
|
Uhm... no sorry, this was not the bug of 2.7.0 and 2.71. That was different. Anyway, I am still not able to reproduce it. |
docker run -d --rm -it --name=redmine redmine:3.4
docker exec -it redmine bash
apt-get update -qq && apt-get install -qqy curl net-tools
curl -fSL -o /wait https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.2/wait && chmod +x /wait
# Note: wait sometime while redmine is starting (~1 min)
netstat -lnptu
# Active Internet connections (only servers)
# Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
# tcp 0 0 0.0.0.0:3000 0.0.0.0:* LISTEN -
WAIT_HOSTS=127.0.0.1:3000 /wait && echo 'Ok' || echo 'Fail'
#--------------------------------------------------------
# docker-compose-wait 2.7.2
#---------------------------
#Starting with configuration:
# - Hosts to be waiting for: [127.0.0.1:3000]
# - Timeout before failure: 30 seconds
# - TCP connection timeout before retry: 5 seconds
# - Sleeping time before checking for hosts availability: 0 seconds
# - Sleeping time once all hosts are available: 0 seconds
# - Sleeping time between retries: 1 seconds
#--------------------------------------------------------
#Checking availability of 127.0.0.1:3000
#Host 127.0.0.1:3000 is now available!
#--------------------------------------------------------
#docker-compose-wait - Everything's fine, the application can now start!
#--------------------------------------------------------
#Ok
WAIT_HOSTS=localhost:3000 /wait && echo 'Ok' || echo 'Fail'
#--------------------------------------------------------
# docker-compose-wait 2.7.2
#---------------------------
#Starting with configuration:
# - Hosts to be waiting for: [localhost:3000]
# - Timeout before failure: 30 seconds
# - TCP connection timeout before retry: 5 seconds
# - Sleeping time before checking for hosts availability: 0 seconds
# - Sleeping time once all hosts are available: 0 seconds
# - Sleeping time between retries: 1 seconds
#--------------------------------------------------------
#Checking availability of localhost:3000
#Host localhost:3000 not yet available...
#Host localhost:3000 not yet available...
#Host localhost:3000 not yet available...
#Host localhost:3000 not yet available...
#^C |
@ekho Could you please try with telnet, something like |
|
Ok, sorry then, I really have no idea about this behavior. The wait tool internally performs a simple call to the rust TCP client implementation, there is no manipulation of the domain name. |
You can reproduce using my steps: #21 (comment) |
It is not critical problem because I can use |
v2.6.0 has no this problem |
|
@ekho |
Yes.
|
@ekho |
But
The text was updated successfully, but these errors were encountered: