def remove_exited_dusty_containers():
client = get_docker_client()<EOL>exited_containers = get_exited_dusty_containers()<EOL>removed_containers = []<EOL>for container in exited_containers:<EOL><INDENT>log_to_client("<STR_LIT>".format(container['<STR_LIT>'][<NUM_LIT:0>]))<EOL>try:<EOL><INDENT>client.remove_container(container['<STR_LIT>'], v=True)<EOL>removed_containers.append(container)<EOL><DEDENT>except Exception as e:<EOL><INDENT>log_to_client(e.message or str(e))<EOL><DEDENT><DEDENT>return removed_containers<EOL>
Removed all dusty containers with 'Exited' in their status