docker rmi
or docker image rm
commands. Here are the steps:
docker images
command:
<image-id>
with the ID of the image you want to delete:
<image-name>:<tag>
with the name and tag of the image you want to delete:
docker images -q
to list all image IDs and then passes them to docker rmi
to delete them.
ctr
command-line interface. Here are the steps:
ctr images ls
command:
<image-name>
with the name of the image you want to delete:
ctr images ls -q
to list all image names and then passes them to ctr images rm
to delete them.