mirror of https://github.com/testerSunshine/12306
complete docker script
parent
8c26862732
commit
fe1ea37a7e
|
@ -17,13 +17,16 @@ if [ $# -eq 1 ];then
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
"run")
|
"run")
|
||||||
echo "run";;
|
docker-compose up;;
|
||||||
|
|
||||||
"restart")
|
"restart")
|
||||||
echo "restart";;
|
docker-compose up --no-recreate;;
|
||||||
|
|
||||||
"rm")
|
"rm")
|
||||||
echo "rm";;
|
docker-compose rm -f;;
|
||||||
|
|
||||||
|
"drun")
|
||||||
|
docker-compose up -d;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo -e 'usage ./docker.sh {run|restart|rm}';;
|
echo -e 'usage ./docker.sh {run|restart|rm}';;
|
||||||
|
|
Loading…
Reference in New Issue