From 43b1f4a901f78464cd4373737183bfa29a933025 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 16 Mar 2021 17:22:15 +0100 Subject: [PATCH] fr: kill the frnet container before trying to 'rm' it + docker container rm jenkins-ttcn3-fr-test-109-frnet jenkins-ttcn3-fr-test-109-ttcn3-fr-test jenkins-ttcn3-fr-test-109-ttcn3-fr-test Error response from daemon: You cannot remove a running container 4f5ec7f412b2d37d00b2738b2bcddffada36efebfe7ce32ed196543ee436154e. Stop the container before attempting removal or force remove Change-Id: I66ed0d073bdd6962f78da54232d6bc58adc09e2c --- ttcn3-fr-test/jenkins.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ttcn3-fr-test/jenkins.sh b/ttcn3-fr-test/jenkins.sh index bfe775f3..c878000c 100755 --- a/ttcn3-fr-test/jenkins.sh +++ b/ttcn3-fr-test/jenkins.sh @@ -63,6 +63,8 @@ done # emulate running container in foreground, which is no longer possible as we # must shift the net-devices into the container _after_ it is started docker logs -f ${BUILD_TAG}-ttcn3-fr-test +# kill the frnet container to avoid "You cannot remove a running container " below in 'rm' +docker kill ${BUILD_TAG}-frnet # store execution logs for both containers docker logs --timestamps ${BUILD_TAG}-ttcn3-fr-test > $VOL_BASE_DIR/fr-tester/exec.log