更新时间:2022-12-06 18:58:31
我在这里假设您只想删除所有docker的容器ID。 因此,如果您不想删除所有容器,请不要运行此命令。
i am assuming here that you want to delete all docker's container ids only. so please DO NOT run this in case you don't want to delete all containers.
当您想删除docker中的所有容器ID(在Ubuntu系统上对此进行了测试)时,以下操作将唯一且有帮助 :
Following will ONLY and ONLY help when you want to delete all container ids in docker(tested this on Ubuntu system):
docker ps -a -q | xargs docker rm