How to delete all local Docker images

Have you ever filled your disk because of Docker images ?
docker linux tech

How to delete all local Docker images

The following script is for those times when you fill up your disk with images that you can typically re-download from the internet. Or, simply put, sometimes you just want to experiment with Docker locally and you end up with an overcrowded filesystem.

#! /bin/bash 

SPECIFIC_COMMAND="sudo docker rmi"
IMAGES=$(docker images | tail -n +2 | awk -e '{print $1}')

for i in "$IMAGES"; do
    [[ -z $i ]] && break
    $SPECIFIC_COMMAND $i
done

How to delete all local Docker images

Have you filled your disk because of Docker instances ?
docker linux tech

Java text blocks as preview in Jdk 13

Java 13
java jdk jdk13 tech

X509 certificates for client authentication

How to quickly generare a CA and client certificate for secure communication
iot crypto tech certificates iron