When setting DockerOperator with auto_remove=True in airflow version 2.0.0 the container remain in the container list if it was finished with 'Exited (1)'
tests/providers/docker/operators/test_docker.py
#
#
#
import logging
import unittest
from unittest import mock
import pytest
from airflow.exceptions import AirflowException
try:
    from docker import APIClient
    from airflow.providers.docker.hooks.docker import DockerHook
    from airflow.providers.docker.operators.docker import DockerOperator
except ImportError:
    pass
class TestDockerOperator(unittest.TestCase):