docker image prune

Command Name: 

docker image prune

Description:

Remove unused images

Syntax:

easywhatis$ docker image prune --help

Usage: docker image prune [OPTIONS]

Remove unused images

Options:
  -a, --all             Remove all unused images, not just dangling ones
      --filter filter   Provide filter values (e.g. 'until=<timestamp>')
  -f, --force           Do not prompt for confirmation
easywhatis$

Example:

easywhatis$ docker image prune
WARNING! This will remove all dangling images.
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B