hack: make tmux optional for shell
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>pull/5/head
parent
252ab3e103
commit
5b5dafde0d
@ -1,8 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
tmux new -s demo -d
|
dockerdCmd="dockerd -s overlay2 -D"
|
||||||
tmux new-window 'dockerd -s overlay2 -D'
|
|
||||||
tmux new-window
|
if [ -n "$TMUX_ENTRYPOINT" ]; then
|
||||||
tmux a -t demo
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue