Skip to content

[Request]: Automatic public IPv6 prefix mapping / delegation from host #1597

@JAJA-WHB

Description

@JAJA-WHB

Description

Currently, the main way to expose containers to public IPv6 is through manual port publishing (-p [::]:hostport:containerport) or using --network host.

I would like native support for automatically mapping the host's public IPv6 address (Global Unicast Address) to containers, so that containers can directly receive and use the host's public IPv6 prefix without manual port mapping.

Use Case

  • Home users with native IPv6 broadband (/64 or /56 prefix from ISP).
  • Running web services, APIs, or other servers that need to be directly accessible via public IPv6.
  • Simplifying deployment by allowing containers to behave more like they have their own public IP, reducing port conflicts on the host.

Proposed Feature

Add support for automatic public IPv6 mapping, for example:

# Option 1: When creating a network
container network create mynet --subnet-v6 auto-public

# Option 2: When running a container
container run --network mynet --ipv6-public-mapping ...

# Option 3: A global flag
container run --public-ipv6 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions