Skip to content

Latest commit

 

History

History
26 lines (24 loc) · 787 Bytes

README.md

File metadata and controls

26 lines (24 loc) · 787 Bytes

Usage

The working directory inside the container defaults to /compose

To execute the up command directly from the host system cd into the directory containing the docker-compose.yml and enter:

docker run --rm -t \
--privileged \
-v $(pwd):/compose \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
wagoautomation/docker-compose -f docker-compose.yml up

For convinience you could create a permanent alias by adding following line in ~.profile in your host system:

alias docker-compose='docker run --rm -t \
--privileged \
 -v $(pwd):/compose \
 -v /var/run/docker.sock:/var/run/docker.sock \
 -v /usr/bin/docker:/usr/bin/docker \
 wagoautomation/docker-compose'

and just call

docker-compose -f docker-compose.yml up