Skip to content

userspace network between containers #6863

@tmds

Description

@tmds

Creating a network requires root.

To avoid that, you can:

  • put containers in a pod and communicate via "localhost"
  • use the "--network host" network

Both options use ports from the same "host", so it is not possible to run multiple containers that have the same containerport, like when the same image is used to create multiple containers.

Can podman support creating a 'network' between containers that: doesn't require root, allows containers to bind to the same port, and map ports from the containers to the host?

Related slirp4netns issue: rootless-containers/slirp4netns#172

This would be useful also for https://github.com/containers/podman-compose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.rootless

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions