score-spec / score-compose

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

fix: support subpath on docker or bind volumes #169

Closed astromechza closed 4 months ago

astromechza commented 4 months 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.