meAmidos / dcind

Docker image with Docker Compose. Useful as a base image for integration tests in Concourse CI.
MIT License
142 stars 104 forks source link

Docker daemon not started in concourse task (README example broken) #15

Closed fenech closed 5 years ago

fenech commented 5 years ago

These two lines were removed from the example in the README:

source /docker-lib.sh
start_docker

But without them, any calls to docker functions cause the following error:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Since the entrypoint.sh script isn't used when a concourse task is run, these lines need to be in the task script.

meAmidos commented 5 years ago

Good catch, thanks.

fenech commented 5 years ago

Also, since the docker-lib.sh script now has bash dependencies (e.g. declare), I think that the example should use bash, not sh.

fenech commented 5 years ago

Opened #16