mirror of
https://github.com/docker/buildx.git
synced 2026-10-28 06:39:39 +03:00
14 lines
296 B
Bash
Executable File
14 lines
296 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
: ${TMUX=}
|
|
|
|
function clean {
|
|
docker rmi $(cat $iidfile)
|
|
}
|
|
|
|
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
|
|
DOCKER_BUILDKIT=1 docker build --iidfile $iidfile --target demo-env .
|
|
trap clean EXIT
|
|
docker run -it --privileged --rm -e TMUX_ENTRYPOINT=$TMUX $(cat $iidfile) |