containers / containers/podlet

Volume name (& external) not supported

Open
#158 3 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
1.6k
Forks
48
Avg merge
1d 9h
Merged PRs (30d)
1

Description

```
$ 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:
```yaml
volumes:
db:
name: "some_db"
```

Similarly this is not supported:
```yaml
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 https://github.com/containers/podlet/discussions/159 for background story why I actually wanted to use this key

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.