Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Comments

rm multiple models#19

Merged
doringeman merged 2 commits intodocker:mainfrom
glours:rm-multiple-models
Apr 9, 2025
Merged

rm multiple models#19
doringeman merged 2 commits intodocker:mainfrom
glours:rm-multiple-models

Conversation

@glours
Copy link
Contributor

@glours glours commented Apr 7, 2025

Allow to remove multiple model from the same command call
Could be useful to have the same capabilities as the main docker cli in the future
for example Docker CLI permits docker rm $(docker ps --filter status=exited -q) we could have the same -q attribut to docker model list and do docker model rm $(docker model list -q) to remove all the model at once

glours added 2 commits April 8, 2025 15:40
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
@glours glours force-pushed the rm-multiple-models branch from 34f1638 to eb08c54 Compare April 8, 2025 13:46
Copy link
Contributor

@ilopezluna ilopezluna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much @glours for helping here 🙏
I've tried the PR and everything works great, just added a suggestion to use ggcr because IMHO its going to make this and future changes more easy/readable. Let me know what you think!

return "", fmt.Errorf("failed to unmarshal response body: %w", err)
}

for _, m := range modelsJson {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@doringeman doringeman merged commit aef3eaa into docker:main Apr 9, 2025
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants