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
<id>. Stop the container before attempting removal or force remove
Let's listen to the log message and add `--force` to that `docker rm`.
@@ -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" \
