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

Could not convert compose file with ports #109

Open
Chaz6 opened this issue Sep 24, 2024 · 1 comment
Open

Could not convert compose file with ports #109

Chaz6 opened this issue Sep 24, 2024 · 1 comment

Comments

@Chaz6
Copy link

Chaz6 commented Sep 24, 2024

Error output:-

   4: could not convert port to short syntax, port = Port {                                                                              
          name: None,
          target: 80,
          published: Some(
              Range {
                  start: 80,
                  end: None,
              },
          ),
          host_ip: None,
          protocol: Some(
              Tcp,
          ),
          app_protocol: None,
          mode: Some(
              Host,
          ),
          extensions: {},
      }

From docker-compose.yml:-

    ports:
      - target: 80
        published: 80
        protocol: tcp
        mode: host
      - target: 443
        published: 443
        protocol: tcp
        mode: host
      - target: 443
        published: 443
        protocol: udp
        mode: host
@k9withabone
Copy link
Member

Port mode is not supported by the short port syntax, which is what Podman requires. See the PublishPort= Quadlet option and podman run --publish.

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

No branches or pull requests

2 participants