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

sh: 1: ./wait-for: not found #1

Open
ibakayoko opened this issue May 31, 2017 · 2 comments
Open

sh: 1: ./wait-for: not found #1

ibakayoko opened this issue May 31, 2017 · 2 comments

Comments

@ibakayoko
Copy link

i created a docker-compose.yaml with the content below

version: '2'

services:
  db:
    image: postgres:9.4

  backend:
    image: tomcat
    command: sh -c './wait-for db:5432 -- npm start'
    depends_on:
      - db

the backend service is not starting i get

sh: 1: ./wait-for: not found

in the container log.

@elferink
Copy link

You should make sure your tomcat image has wait-for in the current working directory and it has execute rights.
make sure you have something like this in your Dockerfile
RUN curl -OL https://raw.githubusercontent.com/mrako/wait-for/master/wait-for && chmod +x wait-for

@junneyang
Copy link

/opt/wait-for works, i do not known why.....

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