docker system prune [OPTIONS]
docker system prune [OPTIONS]
--all , -a Remove all unused images not just dangling ones
--filter API 1.28+
Provide filter values (e.g. 'label=<key>=<value>')
--force , -f Do not prompt for confirmation
--volumes Prune volumes
$ docker system prune -a
$ docker container prune
$ docker image prune -a