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

Add inspect command #66

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Add inspect command #66

merged 1 commit into from
Jan 8, 2025

Conversation

KevSlashNull
Copy link
Contributor

This adds a krunvm inspect command that runs buildah inspect under the hood, so users can find information about the VM, such as the image metadata (e.g. image name and digest) or mount point.

This allows, for example, creating a microVM and later only conditionally recreating it with a new image if an update is available.

Example

$ krunvm create nginx:1.27.2-alpine --name nginx-test
...
$ krunvm inspect nginx-test | jq -r .FromImage
docker.io/library/nginx:1.27.2-alpine

@slp
Copy link
Collaborator

slp commented Jan 8, 2025

Thanks for the contribution, LGTM. Could you please sign the commit to fix the DCO test?

This adds a `krunvm inspect` command that runs `buildah inspect` under
the hood, so users can find information about the VM, such as
the image metadata (e.g. image name and digest) or mount point.

Signed-off-by: Kev <[email protected]>
@KevSlashNull
Copy link
Contributor Author

thanks and sorry @slp, signed off now!

@slp slp merged commit 2d9e1d6 into containers:main Jan 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants