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 HostConfig to nerdctl inspect response #3812

Merged

Conversation

coderbirju
Copy link
Contributor

nerdctl inspect currently doesn't report HostConfig details in its response.

Attempting to add this PR as a starting point, aim is to get the dockercompat response closer to the docker inspect response schema

@coderbirju coderbirju force-pushed the add-hostconfig-inspect-response branch from f57dca7 to cfdf044 Compare January 15, 2025 05:15
@coderbirju coderbirju force-pushed the add-hostconfig-inspect-response branch 5 times, most recently from 0b7af18 to 64ad424 Compare January 22, 2025 22:52
@coderbirju coderbirju changed the title [WIP]: Add HostConfig to nerdctl inspect response Add HostConfig to nerdctl inspect response Jan 22, 2025
@coderbirju coderbirju force-pushed the add-hostconfig-inspect-response branch 19 times, most recently from 7052b62 to c5794d5 Compare January 30, 2025 17:41
@coderbirju coderbirju force-pushed the add-hostconfig-inspect-response branch 3 times, most recently from f36f024 to 41ace87 Compare January 30, 2025 19:27
@coderbirju
Copy link
Contributor Author

@AkihiroSuda PTAL, I've tried to limit the use of labels and use the native inspect as much as possible.

@AkihiroSuda AkihiroSuda added this to the v2.x.x (tentative) milestone Feb 6, 2025
@coderbirju coderbirju force-pushed the add-hostconfig-inspect-response branch from 41ace87 to 3721a3d Compare February 11, 2025 18:37
@coderbirju
Copy link
Contributor Author

Bumping this PR for review. PTAL when you get a chance
@AkihiroSuda @djdongjin

@AkihiroSuda AkihiroSuda requested a review from a team February 18, 2025 03:45
@coderbirju coderbirju force-pushed the add-hostconfig-inspect-response branch from 3721a3d to 17fe1b1 Compare February 22, 2025 18:10
Copy link
Member

@djdongjin djdongjin left a comment

Choose a reason for hiding this comment

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

Left some comments

Copy link
Member

@djdongjin djdongjin left a comment

Choose a reason for hiding this comment

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

lgtm, please squash commits

@coderbirju coderbirju force-pushed the add-hostconfig-inspect-response branch from d6ca68f to 29883b4 Compare February 24, 2025 17:52
This commit adds the following fields to the hostconfig struct that is
retured when container inspect is called.
- CIdFile
- GroupAdd
- Memory
- CgroupNsMode
- DNS config
- OOMScoreAdj
- ReadonlyRootfs
- UTSMode
- ShmSize
- Runtime
- Sysctl
- Device
- PidMode

Signed-off-by: Arjun Raja Yogidas <[email protected]>
@coderbirju coderbirju force-pushed the add-hostconfig-inspect-response branch from 29883b4 to 37d9958 Compare February 24, 2025 18:11
Copy link
Member

@djdongjin djdongjin left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@coderbirju
Copy link
Contributor Author

@AkihiroSuda PTAL when you get some time. Thanks!

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit d5bed8b into containerd:main Feb 28, 2025
30 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.

3 participants