docker-history

docker history #

用于查看docker镜像的历史(Dockerfile)。

bash
# 输出完整历史信息:
docker history --no-trunc IMAGE

# 只输出镜像ID和CreatedBy两列:
docker history --no-trunc --format "table {{.ID}}\t{{.CreatedBy}}" IMAGE
2024年12月21日