Created
October 30, 2018 05:09
-
-
Save trohit/51b08cbb2ca6429557f3e67ff8f9139f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat main | |
#!/bin/bash | |
rm -v /tmp/eject | |
i=0 | |
while true | |
do | |
if [ -f /tmp/eject ] | |
then | |
exit 0 | |
fi | |
echo m$i | |
let i=$i+1 | |
sleep 1 | |
#echo ".." | |
done | |
$ cat main | |
#!/bin/bash | |
rm -v /tmp/eject | |
i=0 | |
while true | |
do | |
if [ -f /tmp/eject ] | |
then | |
exit 0 | |
fi | |
echo m$i | |
let i=$i+1 | |
sleep 1 | |
#echo ".." | |
done | |
d rm -f m22 | |
d run --name m22 --rm -dit m2 /main | |
d logs -f m22 | |
d exec -it m22 /loopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment