Docker Commands One-Liner

#!/bin/bash

#Stop all Container
docker stop $(docker ps -a -q)
#Delete all Container
docker rm $(docker ps -a -q)
#Delete all Images
docker rmi $(docker images -q)

Oder als one-line

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)

Tags: