docker buildx history rm

描述移除构建记录
用法docker buildx history rm [选项] [引用...]

描述

从当前构建器的历史记录中移除一个或多个构建记录。您可以通过 ID 或偏移量移除特定构建,或使用 --all 标志一次性删除所有记录。

选项

选项默认值描述
--all移除所有构建记录

示例

移除特定构建

# Using a build ID
docker buildx history rm qu2gsuo8ejqrwdfii23xkkckt

# Or using a relative offset
docker buildx history rm ^1

移除多个构建

# Using build IDs
docker buildx history rm qu2gsuo8ejqrwdfii23xkkckt qsiifiuf1ad9pa9qvppc0z1l3

# Or using relative offsets
docker buildx history rm ^1 ^2

从当前构建器中移除所有构建记录 (--all)

docker buildx history rm --all
© . This site is unofficial and not affiliated with Kubernetes or Docker Inc.