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 nerdctl build --add-host option support #3786

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

austinvazquez
Copy link
Member

This change adds support for image build --add-host option to enable custom host-to-IP mappings.

Copy link
Contributor

@chews93319 chews93319 left a comment

Choose a reason for hiding this comment

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

LGTM

nit/qq: Will the image build --add-host need to handle the special 'host-gateway' string?

@austinvazquez
Copy link
Member Author

@chews93319, yep good call out. Let me push another revision for this.

@austinvazquez austinvazquez force-pushed the feat-build-add-host branch 4 times, most recently from 6a56dab to 054b633 Compare December 24, 2024 03:44
This change refactors the parse extra hosts logic from container run
command and adds support for image build add-host flag.

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
@austinvazquez
Copy link
Member Author

@chews93319, I pushed 054b633 which refactors container run --add-host parsing logic into a utility function for host-gateway functionality.

@AkihiroSuda AkihiroSuda added this to the v2.0.3 milestone Dec 24, 2024
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 8ed777d into containerd:main Dec 24, 2024
30 checks passed
@austinvazquez austinvazquez deleted the feat-build-add-host branch December 24, 2024 07:32
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.

5 participants