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

support of nerdctl inspect {imagename} #222

Closed
mviereck opened this issue May 20, 2021 · 8 comments
Closed

support of nerdctl inspect {imagename} #222

mviereck opened this issue May 20, 2021 · 8 comments
Labels
enhancement New feature or request priority/high

Comments

@mviereck
Copy link

nerdctl inspect - Return low-level information on objects. Currently, only supports container objects.

Currently nerctl does not support to inspect images.
Will that be added in future?

Background:
Yet I am adding support for nerdctl in x11docker. For several features I need to inspect the image. The most important informations are ENTRYPOINT and CMD. Further checks are done for WORKDIR, USER and the image architecture (mostly amd64).

Is there another way to get information about ENTRYPOINT and CMD before starting the container?

@AkihiroSuda AkihiroSuda added the enhancement New feature or request label May 20, 2021
@AkihiroSuda
Copy link
Member

PR is wanted

@mviereck
Copy link
Author

I have no experience in go so I cannot provide a PR myself, unfortunately.

Is there another way to get information about ENTRYPOINT and CMD before starting the container?

nerdctl inspect {container} works; so if there would be a nerdctl create I could obtain the information from the non-running container. That would be a reasonable workaround. However, nerdctl create is not included yet, too. Any chance that you would include this?

@mviereck
Copy link
Author

I've included a workaround in x11docker that allows all x11docker features if the user provides a container command himself. So my request is less urgent now, but still desirable.

(Another workaround is needed in x11docker because nerdctl exec --user is not supported. However, the impact is minor.)

@fahedouch
Copy link
Member

@AkihiroSuda @mviereck I take this ticket

@fahedouch
Copy link
Member

nerdctl inspect {imagename} is now available (#239)

TODO: refacto ParseRepoTag function in pkg/imgutil/imgutil.go (related : #239 (comment) #239 (comment))

@mviereck
Copy link
Author

Great, much thanks!
I hope it will be available in a release soon.

@AkihiroSuda
Copy link
Member

Released v0.9.0 https://github.com/containerd/nerdctl/releases/tag/v0.9.0

@mviereck
Copy link
Author

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority/high
Projects
None yet
Development

No branches or pull requests

3 participants