delete-container.sh 166 B

123456789
  1. #!/bin/sh
  2. # remove test container
  3. res=$(docker ps -a | grep -c "$testContainer")
  4. if [ $res -ne 0 ]; then
  5. docker stop $testContainer
  6. docker rm $testContainer
  7. fi