#!/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 $@