Add device_cgroup_rules support to 3.7 schema#6974
Add device_cgroup_rules support to 3.7 schema#6974gh2o wants to merge 1 commit intodocker:masterfrom gh2o:master
device_cgroup_rules support to 3.7 schema#6974Conversation
It was last present in the 2.4 schema. I could not find why it was removed for 3.0, so I am adding it back in. Signed-off-by: Gavin Li <gavin@matician.com>
|
We reverted back to Docker Compose file 2.4 for this feature, it would be nice we can use latest Docker Compose format again. |
|
Need to also update ServiceConfig and check support by Schema v3.7 is not latest, changes should take place on https://github.com/docker/cli/blob/master/cli/compose/schema/data/ which is the canonical place for compose file schema. |
|
@ndeloof oh I see those schemas exist in two places, in the From what I can tell |
|
a resync is indeed needed, see #7047 |
|
The property now is part of the upcomming 3.9 version of the compose-spec: compose-spec/compose-spec#63. I guess this merge request can be closed? |
Add configurations to run Weston and Chromium as regular users inside the container. The option device_cgroup_rules currently requires docker-compose to use the 2.4 file format. There is currently a pull request open to reenable device_cgroup_rules in Docker compose 3.7 file format (see docker/compose#6974). Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
It was last present in the 2.4 schema. I could not find why it was removed for 3.0, so I am adding it back in.
This option is needed to selectively share devices between host and container. See here.