containers / podlet

Generate Podman Quadlet files from a Podman command, compose file, or existing object
https://crates.io/crates/podlet
Mozilla Public License 2.0
422 stars 12 forks source link

Compose file top-level element `name` is not recognized #47

Closed nicomem closed 5 months ago

nicomem commented 9 months ago

Description

When using the podlet compose command on a compose file which has a name top level element, an error is thrown indicating that the file is not a valid compose file.

Steps to reproduce

Create the following compose file hello-world-compose.yml:

version: '3'
name: hello-world
services:
  hello-world:
    image: hello-world

Run podlet compose hello-world-compose.yml:

Error: 
   0: File `hello-world-compose.yml` is not a valid compose file
   1: unknown attribute "name", extensions must start with 'x-' (see https://docs.docker.com/compose/compose-file/#extension)
k9withabone commented 7 months ago

Blocked on #63.