Skip to content

Containers require unique internal port #224

@m-czernek

Description

@m-czernek

The following docker-compose.yml file is a valid file for docker-compose:

version: '3.8'
services:
  redis:
    image: "redis:alpine"
  redis-2:
    image: "redis:alpine"

Both containers become available and ready. No ports are exposed to the outside.

However, podman-compose fails to properly execute the above configuration because redis and redis-2 require identical ports.

The following configuration encounters the same problem:

version: '3.8'
services:
  redis:
    image: "redis:alpine"
    deploy:
      replicas: 2

Containers should be internally isolated from each other, and should not require unique internal ports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions