latest
(Dockerfile)1
,1.24
,1.24.0
, (Dockerfile)1.8
,1.8.0
, (Dockerfile)1.7
,1.7.1
(Dockerfile)1.6
,1.6.2
(Dockerfile)1.5
,1.5.2
(Dockerfile)
Note: This is similar to docker/compose image, but this image is based on Alpine on an auto-build.
Docker Compose is useful during development and to simplify building and running linked Docker images.
$ docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v $PWD:/code:ro \
wernight/docker-compose build
- Entrypoint is
docker-compose
so do not runwernight/docker-compose docker-compose
. /code
is the default current working directory.- You can run as any user, for example as yourself by adding
--user $UID:$GID
.
Note: You should use a docker-compose
version that is compatible with your docker
version.
You may setup an alias to run this is if you were running docker-compose
directly.
Here is a function that works for Bash/ZSH (except the name, it's POSIX-compatible):
docker-compose () {
DIRNAME=$"$(basename \"$PWD\")"
docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-w "/$DIRNAME" -v "$PWD":"/$DIRNAME":ro \
wernight/docker-compose "$@"
}
Suggestions are welcome on our GitHub issue tracker.