containers / containers/podlet

Can't convert compose service with CDI device

Open
#107 11 comments 1 reaction 0 assignees View on GitHub
blocked
Dominant language
Rust
Stars
1.6k
Forks
48
Avg merge
1d 9h
Merged PRs (30d)
1

Description

Consider the following service:

```
jellyfin:
image: docker.io/jellyfin/jellyfin:latest
container_name: jellyfin
restart: unless-stopped
#user: 973:973 # media:media
group_add:
- video
ports:
- 127.0.0.1:8096:8096
volumes:
- ./jellyfin/config:/config
- ./jellyfin/cache:/cache
- /mnt/hdd/media:/data/media
devices:
- nvidia.com/gpu=all
security_opt:
- label=disable
```

Ignore the fact that the user entry would fail with podlet due to https://github.com/containers/podlet/issues/106, another validation failure is triggered by the devices entry.

```
Error:
0: error converting compose file
1: error reading compose file
2: File `/compose.yml` is not a valid compose file
3: services.jellyfin.devices[0]: device must have a container path at line 45 column 9

Location:
src/cli/compose.rs:203

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

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.