Skip to content

Volume name (& external) not supported #158

@rugk

Description

@rugk
$ podlet --absolute-host-paths -u --install compose docker-compose.yml
Generating fredy file(s)…
Error: 
   0: could not parse volume `db` as a valid podman volume
   1: `name` is not supported

Location:
   src/quadlet/volume.rs:111

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

with a docker compose like this is not supported:

volumes:
  db:
    name: "some_db"

Similarly this is not supported:

volumes:
  db:
    external: true

Docker docs: https://docs.docker.com/reference/compose-file/volumes/

Proposed solution

I guess adding support for the name should be easy, is not it? It's just an act of renaming/letting podman create it the correct name?

About "external" I am not sure, because maybe I also do not really understand it.

FYI podman-compose BTW seems to support both or at least shows no error.
See also #159 for background story why I actually wanted to use this key

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