Skip to content
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

Timeout is not support on Centos 7 #65

Open
vinhha96 opened this issue Mar 5, 2019 · 2 comments
Open

Timeout is not support on Centos 7 #65

vinhha96 opened this issue Mar 5, 2019 · 2 comments

Comments

@vinhha96
Copy link

vinhha96 commented Mar 5, 2019

Hi guy, when I run this script in OSX, everything will be ok. But when I deploy docker on cloud with CentOS 7, this error is shown.

timeout: can't execute '15': No such file or directory

Please help me this problem.

@martialblog
Copy link

@vishnubob Hi, I just tested it and it worked fine.

$ docker pull centos:7
$ docker run -ti --rm centos:7
[root@466142fdbeae wait-for-it]# yum install -y git
[root@466142fdbeae wait-for-it]# git clone https://github.com/vishnubob/wait-for-it.git
[root@466142fdbeae wait-for-it]# ./wait-for-it.sh -t 0 -h localhost -p 3306
wait-for-it.sh: waiting for localhost:3306 without a timeout

You sure you did call the script correctly?

@atkrad
Copy link

atkrad commented Jun 15, 2022

Hey @vinhha96

You can use the Wait4X, It's already compatible with Linux and OSX.
https://github.com/atkrad/wait4x/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants