News for hackers. Stuff that matters.
Re:What's new in Docker 1.13: prune, secrets, checkpoints an... by e40 on Tuesday January 31, 2017 @08:46AM (#13530426)
This is NOT equivalent. The OP was talking about removing unused images. Your commands remove all images.
Re:What's new in Docker 1.13: prune, secrets, checkpoints an... by lloeki on Tuesday January 31, 2017 @10:43AM (#13531473)
Maybe this?

    docker rm $(docker ps -qa --no-trunc --filter "status=exited")
    docker rmi $(docker images --filter "dangling=true" -q --no-trunc)