From: Dimitri Savineau Date: Wed, 21 Oct 2020 19:12:12 +0000 (-0400) Subject: ceph-container-lint: use --rm docker option X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ae1dafa7c1b45da85687cb9839758e5fcce6bafa;p=ceph-build.git ceph-container-lint: use --rm docker option The container lint job, which run shellcheck in a docker container, doesn't use the --rm docker option so the container aren't removed after their execution. Signed-off-by: Dimitri Savineau --- diff --git a/ceph-container-lint/build/build b/ceph-container-lint/build/build index 5f4288d4..8181a0a1 100755 --- a/ceph-container-lint/build/build +++ b/ceph-container-lint/build/build @@ -25,7 +25,7 @@ function check(){ while read -r filename; do pushd "$(dirname "$filename")" file=$(basename "$filename") - sudo docker run -v "$(pwd)"/"$file":/"$file":z koalaman/shellcheck --external-sources --exclude "$IGNORE_THESE_CODES" /"$file" + sudo docker run --rm -v "$(pwd)"/"$file":/"$file":z koalaman/shellcheck --external-sources --exclude "$IGNORE_THESE_CODES" /"$file" popd done return $?