summary refs log tree commit diff
path: root/bin/compose
blob: e4a5dbdd94f9af75cc536b84c7cd832e19c805af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
cwd="$PWD"
container_cwd="/run/cwd/$(basename "$cwd")"
exec docker run \
    --rm -it \
    --net host \
    --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
    --mount type=bind,src="$cwd",dst="$container_cwd" \
    -w "$container_cwd" \
    docker/compose:latest $@