Drop docker container cleanup statement 75/114275/3
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 27 Oct 2020 11:12:36 +0000 (12:12 +0100)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 28 Oct 2020 10:55:43 +0000 (10:55 +0000)
Container is run with "--rm" option hence manual
cleanup is not needed in any case.

Change-Id: Iafe8287b8486abcd4a44fec102db8bfb89af1b63
Issue-ID: OOM-2612
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
build/create_repo.sh

index 8fce53c..ea2b896 100755 (executable)
@@ -133,10 +133,6 @@ fi
 
 #Check if container "centos-repo" is running
 if [ ! "$(docker ps -q -f name=$container_name)" ]; then
-    if [ "$(docker ps -aq -f status=exited -f name=$container_name)" ]; then
-        # cleanup
-        docker rm $container_name
-    fi
     # run repo container
     # name of container $container_name
     # docker entrypoint script from mounted volume