Skip to content

Add inspect command#66

Merged
slp merged 1 commit into
libkrun:mainfrom
KevSlashNull:inspect
Jan 8, 2025
Merged

Add inspect command#66
slp merged 1 commit into
libkrun:mainfrom
KevSlashNull:inspect

Conversation

@KevSlashNull
Copy link
Copy Markdown
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
Copy Markdown
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 <kevslashnull@gmail.com>
@KevSlashNull
Copy link
Copy Markdown
Contributor Author

thanks and sorry @slp, signed off now!

@slp slp merged commit 2d9e1d6 into libkrun:main Jan 8, 2025
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