Skip to content

Commit 3b2a475

Browse files
author
anh nguyen
committed
Make Docker cleanup docs avoid table parsing
Use Docker filters and formatted image IDs so cleanup commands keep targeting LibreChat images without depending on human table columns. Constraint: Docker images table output is not a stable parsing contract. Rejected: Keep grep and awk parsing | column offsets can return the wrong field when output shape changes. Confidence: high Scope-risk: narrow Directive: Prefer Docker CLI format/filter options over parsing human-readable tables. Tested: rg confirmed old grep/awk cleanup pattern no longer appears; bun run build
1 parent 8670c91 commit 3b2a475

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

content/docs/local/docker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ docker compose down
132132

133133
```bash filename="Remove all existing docker images"
134134
# Linux/Mac
135-
docker images -a | grep "librechat" | awk '{print $3}' | xargs docker rmi
135+
docker images -a --filter "reference=*librechat*" --format "{{.ID}}" | xargs docker rmi
136136

137137
# Windows (PowerShell)
138138
docker images -a --format "{{.ID}}" --filter "reference=*librechat*" | ForEach-Object { docker rmi $_ }

content/docs/remote/docker_linux.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ docker compose -f ./deploy-compose.yml down
336336

337337
```bash filename="Remove all existing docker images"
338338
# Linux/Mac
339-
docker images -a | grep "librechat" | awk '{print $3}' | xargs docker rmi
339+
docker images -a --filter "reference=*librechat*" --format "{{.ID}}" | xargs docker rmi
340340
341341
# Windows (PowerShell)
342342
docker images -a --format "{{.ID}}" --filter "reference=*librechat*" | ForEach-Object { docker rmi $_ }

0 commit comments

Comments
 (0)