'force_kill: true' option in docker_container is unable to kill the container while killing it via the docker daemon (-f option) works fine

I am having problems removing containers after introducing cadvisor - https://github.com/google/cadvisor/issues/771

All my scripts that removes containers using Ansible docker_container module (ansible 2.2.1.0) are now failing because of this. I have added force_kill option, but it does not seems to be able to kill the containers, not at least in this situation.

  • name: Delete docker containers
    docker_container:
    name: “service1”
    force_kill: true
    keep_volumes: false
    state: absent

I am able to remove these containers via a plain simple docker command - docker stop and then docker rm service1 -fv

So my question is - what exactly is force_kill doing and why is it not able to behave similar to docker daemon’s force kill option ?