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 for ephemeral host ports #1518

Merged

Conversation

zhan9san
Copy link
Contributor

@zhan9san zhan9san commented Nov 18, 2022

Signed-off-by: Jack Zhang [email protected]

Related to #351

How I tested

$ cat docker-compose.yaml
version: '3.1'

services:
  nginx:
    image: nginx
    restart: always
    ports:
      - 80

$ sudo ~/src/github/nerdctl/_output/nerdctl --cni-path=/opt/cni/bin compose up
$ sudo nerdctl port 02
80/tcp -> 0.0.0.0:49153
$ sudo nerdctl run --cni-path=/opt/cni/bin --rm -p :80 nginx

@AkihiroSuda AkihiroSuda added this to the v1.1.0 milestone Nov 18, 2022
@zhan9san zhan9san force-pushed the feature/support-ephemeral-ports branch from cbb632c to b532478 Compare November 18, 2022 04:34
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 cae52a8 into containerd:main Nov 18, 2022
@fahedouch fahedouch changed the title Support for ephemeral ports Support for ephemeral host ports Nov 18, 2022
@zhan9san zhan9san deleted the feature/support-ephemeral-ports branch November 18, 2022 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants