docker builder prune

Description

Remove build cache

API 1.39+ The client and daemon API must both be at least 1.39 to use this command. Use the docker version command on the client to check your client and daemon API versions.

Usage

docker builder prune

Options

Name, shorthand Default Description
--all , -a Remove all unused images, not just dangling ones
--filter Provide filter values (e.g. ‘unused-for=24h’)
--force , -f Do not prompt for confirmation
--keep-storage Amount of disk space to keep for cache

Parent command

Command Description
docker builder Manage builds
Command Description
docker builder prune Remove build cache

© 2019 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
https://docs.docker.com/v18.09/engine/reference/commandline/builder_prune/