From a4314d662ec960c31cc1a761d4215c2cf98c2f66 Mon Sep 17 00:00:00 2001 From: Fahd El Haraka Date: Tue, 12 May 2026 11:05:05 +0100 Subject: [PATCH] Fix LibreChat Docker image removal command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous Linux/Mac command parsed Docker’s default human-readable image table and relied on `awk '{print $3}'`. In some Docker CLI outputs, this can pass the image size instead of the image ID to `docker rmi`, causing errors such as `invalid reference format: repository name (library/1.66GB) must be lowercase`. This updates the command to use Docker’s formatted output and remove matching LibreChat images by image ID. --- content/docs/local/docker.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/local/docker.mdx b/content/docs/local/docker.mdx index ce9db9eda..fa52232d3 100644 --- a/content/docs/local/docker.mdx +++ b/content/docs/local/docker.mdx @@ -132,7 +132,7 @@ docker compose down ```bash filename="Remove all existing docker images" # Linux/Mac -docker images -a | grep "librechat" | awk '{print $3}' | xargs docker rmi +docker images -a --format '{{.ID}} {{.Repository}}:{{.Tag}}' | grep -i librechat | awk '{print $1}' | sort -u | xargs -r docker rmi # Windows (PowerShell) docker images -a --format "{{.ID}}" --filter "reference=*librechat*" | ForEach-Object { docker rmi $_ }