crictl -runtime-endpoint=unix:///run/containerd/containerd.sock rmi --prune -a
One more command for docker:
docker image prune -a