News for hackers. Stuff that matters.
Re:What's new in Docker 1.13: prune, secrets, checkpoints an... by willemmali on Tuesday January 31, 2017 @06:14AM (#13529608)
Like this?

docker rmi -af

I'm a bit confused by the backticks as I use them all the time scripting, but also in Markdown.

Re:What's new in Docker 1.13: prune, secrets, checkpoints an... by realPubkey on Tuesday January 31, 2017 @07:06AM (#13529840)
I have a gist for it: https://gist.github.com/pubkey/73dcb894cf5f7d262863

#stop and delete all containers

docker rm -f $(docker ps -a -q)

#delete all images

docker rmi -f $(docker images -q)

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)
Re:What's new in Docker 1.13: prune, secrets, checkpoints an... by assaflavie on Tuesday January 31, 2017 @08:45AM (#13530424)
fwiw, there's a new syntax for this, that is a bit more verbose, but probably worth adopting:

docker container rm $(docker container ls -qa)

docker image rm $(docker image ls -q)