You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buildx/hack/demo-env/entrypoint.sh

18 lines
237 B
Bash

#!/bin/sh
dockerdCmd="dockerd -s overlay2 -D"
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 sh
fi