Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
add docker.sh logs function
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsterTan committed Jan 10, 2019
1 parent 8fbb53c commit a699ff4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker.sh
Expand Up @@ -6,7 +6,7 @@
function checkSudo (){
if [ $UID -ne 0 ];then
echo -e 'it must be root!'
echo -e 'usage ./docker.sh {run|restart|rm}'
echo -e 'usage ./docker.sh {run|restart|rm|logs}'
exit 1
fi
}
Expand All @@ -27,9 +27,11 @@ if [ $# -eq 1 ];then

"drun")
docker-compose up -d;;
"logs")
docker-compose logs;;

*)
echo -e 'usage ./docker.sh {run|restart|rm}';;
echo -e 'usage ./docker.sh {run|restart|rm|logs}';;
esac

fi

0 comments on commit a699ff4

Please sign in to comment.