blob: 70c30722125d6224e0717e3de23a9d6eb1e02ed2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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" \
--mount type=bind,src=/,dst=/rootfs \
--env COMPOSE_DOCKER_CLI_BUILD=1 \
--env DOCKER_BUILDKIT=1 \
--env HERE="$cwd" \
-w "$container_cwd" \
docker/compose:latest $@
|