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

implement add-hosts flag && extra_hosts #328

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

fahedouch
Copy link
Member

Hello

  • implement add-host flag
  • implement compose extra_hosts

related ticket #314

@fahedouch fahedouch changed the title Add hosts implement add-hosts flag && extra_hosts Aug 30, 2021
@fahedouch fahedouch changed the title implement add-hosts flag && extra_hosts [WIP] implement add-hosts flag && extra_hosts Aug 30, 2021
@AkihiroSuda AkihiroSuda marked this pull request as draft August 30, 2021 19:10
@fahedouch fahedouch force-pushed the add-hosts branch 2 times, most recently from 8b8374a to 058b14c Compare September 6, 2021 14:00
@fahedouch fahedouch changed the title [WIP] implement add-hosts flag && extra_hosts implement add-hosts flag && extra_hosts Sep 6, 2021
@fahedouch fahedouch marked this pull request as ready for review September 6, 2021 14:00
Name: "add-host",
Usage: "Add a custom host-to-IP mapping (host:ip)",
},
},
Copy link
Member

Choose a reason for hiding this comment

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

Why not use labels as in other flags?

Copy link
Member Author

Choose a reason for hiding this comment

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

@AkihiroSuda you mean rename add-host to labels ?

Copy link
Member

Choose a reason for hiding this comment

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

No, using labels in https://github.com/containerd/nerdctl/blob/master/pkg/labels/labels.go

Other ocihook features use these labels

Copy link
Member Author

Choose a reason for hiding this comment

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

@AkihiroSuda fixed

@AkihiroSuda AkihiroSuda added this to the v0.11.2 milestone Sep 7, 2021
@fahedouch fahedouch force-pushed the add-hosts branch 3 times, most recently from 41c20a4 to 116d735 Compare September 10, 2021 10:48
Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
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

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.

None yet

2 participants