score-spec / score-compose

Reference implementation for docker-compose target platform support
https://score.dev/
Apache License 2.0
445 stars 40 forks source link

fix: support subpath on docker or bind volumes #169

Closed astromechza closed 1 month ago

astromechza commented 1 month ago

This fixes #166 which correctly raised the issue that we blanket disallow volume subpath's but in reality docker is more nuanced and does support sub path volumes for both docker volumes and can be simulated in bind volumes by modifying the bind path.

For tmpfs we still can't really support this however but users can replace tmpfs with a docker volume and get approximately the same utility. This depends on the outputs of the provisioner which indicate the docker volume type.