#!/bin/bash │· for i in $(docker ps -a | tail +2 | awk '{print $1}'); do docker rm $i; done │· for i in $(docker images | tail +2 | awk '{print $3}'); do docker rmi $i; done