Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
docker-compose up says "command not found" when container starts #1639
Comments
huslage
commented
Jul 3, 2015
|
Note that running a container manually seems to work just fine: ➜ docker-demo git:(demo) docker run --entrypoint /bin/bash dockerdemo_app -c "sleep 5 && go-wrapper run"
+ exec app
2015/07/03 03:53:35 unable to initdb: dial tcp 127.0.0.1:0: connection refused
2015/07/03 03:53:35 listening on :8080 |
huslage
commented
Jul 3, 2015
|
app:
build: demo_pq
entrypoint: /bin/bash
command: -c "sleep 5 && go-wrapper run" # sleep because the postgres container isn't ready on first start
environment:
- "TITLE=Docker Demo"
- "DB_USER=demo"
- "DB_PASS=demo"
- "DB_NAME=demo"
- "DB_SSL_MODE=disable"
links:
- "db:db"
ports:
- 8080:8080
expose:
- 8080
db:
image: postgres:latest
environment:
- "POSTGRES_USER=demo"
- "POSTGRES_PASSWORD=demo"
expose:
- 5432 |
dnephin
closed this
Jul 3, 2015
mageddo
commented
Jan 13, 2016
|
My docker is 1.9.1 and I have the same issue |
unknownArtist
commented
Jan 28, 2016
|
@mageddo did you found any solution of this problem ? |
franz-josef-kaiser
commented
Feb 6, 2016
|
Same here with:
|
mageddo
commented
Feb 7, 2016
|
@unknownArtist |
sorrell
referenced this issue
May 3, 2016
Open
rewriting docker commands into docker-compose yml format - Container commands fail #3358
Ciantic
commented
Feb 7, 2017
|
What version should fix this? I'm trying docker on windows: And this either can't seem to find entrypoints I've mounted as volumes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
huslage commentedJul 3, 2015
I'm trying to run http://github.com/mbentley/docker-demo/tree/demo and I'm getting a strange error when I try to run
docker-compose up. This is on a newly createddocker-machineVM with newly installed docker stuff on my mac. This worked fine on Docker Engine1.6.2and Docker Compose1.2.0. I have changed nothing.The build works fine:
Up fails:
This is the container that failed:
Version: