buildx/hack/demo-env/entrypoint.sh
Tonis Tiigi a932d52e35 bake: initial implementation
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-09 19:26:53 -07:00

20 lines
264 B
Bash
Executable File

#!/bin/sh
dockerdCmd="dockerd -s overlay2 -D"
export DOCKER_BUILDKIT=1
if [ -n "$TMUX_ENTRYPOINT" ]; then
tmux new -s demo -d
tmux new-window "$dockerdCmd"
tmux new-window
tmux a -t demo
else
( $dockerdCmd 2>/var/log/dockerd.log & )
exec ash
fi