How to delete all local Docker images

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

How to delete all local Docker instances

We already saw how to clean up some space from old images In some cases, expecially when you develop and need to experiment a lot locally with instances of some Docker images, you probably end up needing some disk space back. The following script will do just that: remove all local docker instances.

#! /bin/bash 

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


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

How to delete all local Docker images

Have you ever filled your disk because of Docker images ?
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