기본 명령어
$ docker buildx
# Extended build capabilities with BuildKit
# Usage: docker buildx [OPTIONS] COMMAND
# Extended build capabilities with BuildKit
# Options:
# --builder string Override the configured builder instance
# -D, --debug Enable debug logging
# Management Commands:
# history Commands to work on build records
# imagetools Commands to work on images in registry
# Commands:
# bake Build from a file
# build Start a build
# create Create a new builder instance
# dial-stdio Proxy current stdio streams to builder instance
# du Disk usage
# inspect Inspect current builder instance
# ls List builder instances
# prune Remove build cache
# rm Remove one or more builder instances
# stop Stop builder instance
# use Set the current builder instance
# version Show buildx version information
# Run 'docker buildx COMMAND --help' for more information on a command.
# Experimental commands and flags are hidden. Set BUILDX_EXPERIMENTAL=1 to show them.
이미지 빌드 캐시 파일 제거
$ docker buildx prune --help
# Remove build cache
# Usage: docker buildx prune
# Remove build cache
# Options:
# -a, --all Include internal/frontend images
# --builder string Override the configured builder instance
# -D, --debug Enable debug logging
# --filter filter Provide filter values (e.g., "until=24h")
# -f, --force Do not prompt for confirmation
# --max-used-space bytes Maximum amount of disk space allowed to keep for cache
# --min-free-space bytes Target amount of free disk space after pruning
# --reserved-space bytes Amount of disk space always allowed to keep for cache
# --verbose Provide a more verbose output
# Experimental commands and flags are hidden. Set BUILDX_EXPERIMENTAL=1 to show them.