mirror of https://github.com/yandex/odyssey.git
22 lines
337 B
Bash
Executable File
22 lines
337 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
while getopts "h:s:" arg; do
|
|
case $arg in
|
|
h)
|
|
echo "usage"
|
|
;;
|
|
s)
|
|
skip=$OPTARG
|
|
echo $skip
|
|
;;
|
|
esac
|
|
done
|
|
|
|
|
|
if [ -z $skip ]; then
|
|
docker image ls | grep odyssey | awk '{print $3}' | xargs docker image rm -f || true
|
|
docker rm $(docker stop $(docker ps -aq)) || true
|
|
fi
|