diff --git a/webhook-cd.py b/webhook-cd.py index 1adcad0..02f408f 100755 --- a/webhook-cd.py +++ b/webhook-cd.py @@ -80,7 +80,7 @@ def get_containers(container_names): def remove_container(container): try: - container.stop() + container.remove() except docker.errors.APIError as e: logging.error(e)