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)'
airflow/providers/docker/operators/docker.py
cpu_shares=int(round(self.cpus * 1024)),
                    mem_limit=self.mem_limit,
                    cap_add=self.cap_add,
                    extra_hosts=self.extra_hosts,
                ),
                image=self.image,
                user=self.user,
                working_dir=self.working_dir,
                tty=self.tty,
            )
            lines = self.cli.attach(container=self.container['Id'], stdout=True, stderr=True, stream=True)
            self.cli.start(self.container['Id'])
            line = ''
            for line in lines:
                line = line.strip()
                if hasattr(line, 'decode'):
                    
                    line = line.decode('utf-8')
                self.log.info(line)
            result = self.cli.wait(self.container['Id'])
            if result['StatusCode'] != 0:
                raise AirflowException('docker container failed: ' + repr(result))
            
            ret = None
            if self.do_xcom_push:
                ret = self.cli.logs(container=self.container['Id']) if self.xcom_all else line.encode('utf-8')
            if self.auto_remove:
                self.cli.remove_container(self.container['Id'])
            return ret
    def execute(self, context) -> Optional[str]: