“docker-compose up” fails with error

I want to work on a project, but I need to use docker for running the app, but the docker-compose up command fails with this error:

System error: exec: "./wait_to_start": stat ./wait_to_start:
no such file or directory

The wait_to_start command is an executable python script in the subfolder backend/.

  • Bluemix IBM Container with Mongodb connection failed
  • How to integrate spark cluster with other Hadoop2.x cluster on Docker
  • How to reach a linked service in docker-compose?
  • Continuous deployment with docker
  • Accessing docker host from (jenkins) docker container
  • Custom Production Meteor App /w Docker - Build Fails on Dependecies
  • I need to determine why it cannot be executed. Either it’s been searched in the wrong path, or there are access right problems, or maybe the wrong python version is used.

    Can I debug it with details, or login with SSH and check the files on the virtual machine? I’m too unexperienced with Docker…

  • My docker was stuck by down whalesay, what should I do?
  • DockerFile to run a java program
  • Dockerfile - Angular2
  • Docker: Cannot pull an image that was pushed to a private registry
  • What is the difference between “docker logs” and “docker attach”?
  • Docker push takes a really long time
  • 2 Solutions collect form web for ““docker-compose up” fails with error”

    You can either set the “workdir” metadata to make sure you are in the right place when you start a container or simply call /backend/wait_to_start instead of ./wait_to_start so you remove the need to be in the proper directory.

    Do debug with docker-compose I would do this:

    docker-compose run --entrypoint bash <servicename>
    

    That should give you a prompt and let you inspect the file and working directory, so see what’s wrong.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.