Jaymin Suthar
Jaymin Suthar

Reputation: 175

docker-compose up : Encountered errors while bringing up the project

I am working on Ubuntu Mint 17.2 64-bit and installed Docker using installation guide. Getting problem while docker-compose up.

When fire command it shows me error like :

data is up-to-date
db is up-to-date
Starting web

ERROR: for web  Cannot start service web: oci runtime error: exec: "./entrypoint.sh": stat ./entrypoint.sh: no such file or directory
ERROR: Encountered errors while bringing up the project.

Here version info:

docker --version
Docker version 1.6.2

docker-compose --version
docker-compose version 1.8.0

docker-machine --version
docker-machine version 0.7.0

docker-compose.yml look like

version: '2'
services:
    nginx:
        restart: always
        container_name: nginx
        build: ./nginx
        ports:
            - "80:80"
        volumes_from:
            - web
        links:
            - web:web

    web:
        restart: always
        container_name: web
        build: .
        expose:
            - "8000"
        env_file: .env
        volumes:
            - ./web:/web
        links:
            - db:db
        depends_on:
            - db
        command: ./entrypoint.sh
...

I think in web entrypoint.sh was not found, For more info also give permission in Dockerfile file,In it RUN chmod +x /web/entrypoint.sh

I am not sure how to solve this issue.

Edit:

I am connect docker-machine with ssh and find web dir empty.

Upvotes: 10

Views: 52067

Answers (3)

Riya Chougule
Riya Chougule

Reputation: 1

For me, the error "docker-compose up : Encountered errors while bringing up the project" occurred because there was not enough space for the docker containers. So my colleague suggested me the following steps : Step 1 : df -h to check the available space Step 2 : docker image ls to check where the maximum containers are eating up the space. Step 3 : Remove the unnecessary space by docker image prune Then try docker-compose up and see if it works. Hope this helped !

Upvotes: 0

Ray
Ray

Reputation: 537

run command docker rm -f somecontainer

and then restart docker, run the same command again solve my problem

Upvotes: 4

dnephin
dnephin

Reputation: 28040

docker-machine only creates shared folders for /home. If the project is not under the home directory then you wont be able to use volumes.

You can either add another shared folder,or move the project. Since you are on linux you don't actually need to use docker-machine, you could just use docker directly on the host.

Upvotes: 2

Related Questions