aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-03-16 17:22:15 +0100
committerlaforge <laforge@osmocom.org>2021-03-16 16:23:51 +0000
commit43b1f4a901f78464cd4373737183bfa29a933025 (patch)
tree1f7706cb1192a1c03b10de678ad88f6bf7e6cc56
parentd909f501760d8a4e9a016b9137e15e5b044e4aff (diff)
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
-rwxr-xr-xttcn3-fr-test/jenkins.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ttcn3-fr-test/jenkins.sh b/ttcn3-fr-test/jenkins.sh
index bfe775f..c878000 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