vantage6.common.docker.addons.remove_container_if_exists#

remove_container_if_exists(docker_client, **filters)#

Kill and remove a docker container if it exists

Parameters:
  • docker_client (DockerClient) – A Docker client

  • **filters – These are arguments that will be passed to the client.container.list() function. They should yield 0 or 1 containers as result (e.g. name=’something’)

Return type:

None