Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to purge unused image in repository from Kind #3735

Open
carrulop opened this issue Sep 6, 2024 · 2 comments
Open

How to purge unused image in repository from Kind #3735

carrulop opened this issue Sep 6, 2024 · 2 comments
Assignees
Labels
kind/support Categorizes issue or PR as a support question.

Comments

@carrulop
Copy link

carrulop commented Sep 6, 2024

Hello,

I would like to know if it is possible to remove those images that are unused in local repository from Kind.
I usually working generating new images during my development, and each time that I create a new build from my application and I create an image with podman build, then I push this image to my local Kind cluster. My question is how can I free space in disk from the local repository for my Kind server.

I use Windows 11 version for Kind v0.24.0 go1.22.6, with podman 5.2.2.

Thanks a lot!

Best regards

@carrulop carrulop added the kind/support Categorizes issue or PR as a support question. label Sep 6, 2024
@stmcginnis
Copy link
Contributor

Even though you are using it with kind, that is up to the registry you are using and how it works. If you are using the registry container described in the script, this looks like a decent write up: https://azizunsal.github.io/blog/post/delete-images-from-private-docker-registry/

Note: Slack is probably a more efficient way to ask usage questions than filing issues. You will get a response here, but there are more people lurking in the #kind slack channel that may be able to answer questions. Or in this case, whatever the registry documentation recommends for support channels.

@BenTheElder
Copy link
Member

My question is how can I free space in disk from the local repository for my Kind server.

For the nodes one option currently is docker exec $node crictl rmi --prune.

For the registry, see the comment above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question.
Projects
None yet
Development

No branches or pull requests

3 participants