Docker remove all containers/images

  • 移除所有 Container
$ docker stop $(docker ps -a -q)
$ docker rm $(docker ps -a -q)
  • 移除所有 Images
$ docker rmi $(docker images -a -q)