UPDATE:
As pointed out by several readers, newer version of Docker Engine ( > 1.13) now provides the following single command to do all this.
docker system prune -a