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
hosts_obj = mock.Mock()
        operator = DockerOperator(task_id='test', image='test', extra_hosts=hosts_obj)
        operator.execute(None)
        self.client_mock.create_container.assert_called_once()
        assert 'host_config' in self.client_mock.create_container.call_args[1]
        assert 'extra_hosts' in self.client_mock.create_host_config.call_args[1]
        assert hosts_obj is self.client_mock.create_host_config.call_args[1]['extra_hosts']