From efbb34449c1106b49ba71f6f07e68f65057959df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dulko?= Date: Tue, 16 Oct 2018 18:45:20 +0200 Subject: [PATCH] Add `--force` to `docker rm` in DevStack plugin Seems like CentOS gate sometimes fails on plugin.sh:extract_hyperkube with: Error response from daemon: You cannot remove a running container . Stop the container before attempting removal or force remove Let's listen to the log message and add `--force` to that `docker rm`. Change-Id: Ia0891d074e0b4c5870ec67f1f4459e8c7110aebd --- devstack/plugin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index c2333b5b7..ad0e27b94 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -647,7 +647,7 @@ function extract_hyperkube { "$tmp_loopback_cni_path" docker cp "${hyperkube_container}:/usr/bin/nsenter" "$tmp_nsenter_path" - docker rm "$hyperkube_container" + docker rm --force "$hyperkube_container" sudo install -o "$STACK_USER" -m 0555 -D "$tmp_hyperkube_path" \ "$KURYR_HYPERKUBE_BINARY" sudo install -o "$STACK_USER" -m 0555 -D "$tmp_loopback_cni_path" \