mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
hack: make tmux optional for shell
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
@ -1,8 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
tmux new -s demo -d
|
||||
tmux new-window 'dockerd -s overlay2 -D'
|
||||
tmux new-window
|
||||
tmux a -t demo
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user