提交 22afa16f 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

clean

上级 85ca8474
......@@ -15,9 +15,9 @@
/**
*
* create a room need at least three people
* when we create a room, this is the 3rd people.
* when we create a room, the following one is the 3rd people.
*
* put name of one of your friend here, or create room will not work.
* put name of one of your friend here, or room create function will not work.
*
* ::::::::: ___CHANGE ME___ :::::::::
* vvvvvvvvv
......
......@@ -28,12 +28,18 @@ case "$1" in
ret=$?
;;
clean)
docker ps -a | grep Exited | awk '{print $1}' | xargs docker rm || true
docker images | grep none | awk '{print $3}' | xargs docker rmi
;;
*)
echo docker run -ti "$optRm" -v /dev/shm:/dev/shm "$imageName" "$@"
exec docker run -ti "$optRm" -v /dev/shm:/dev/shm "$imageName" "$@"
ret=$?
;;
esac
echo "ERROR: exec return $ret ???"
exit $ret
[ "$ret" -ne 0 ] && {
echo "ERROR: exec return $ret ???"
exit $ret
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册