Ran docker stack deploy --compose-file compose.yml foo ... checked that the option appeared in the container's inspect output, and the sysctl was updated in the container.
- Description for the changelog
Added support to `docker stack deploy` for `driver_opts` in a service's networks, in new version 3.13 of its compose schema.
- What I did
Handle networks.driver_opts for a service.
Related to:
These are endpoint-specific driver options...
The API has had support for a long time, it's only recently been added to compose (unreleased right now).
- How I did it
Updated verification schema, add
ServiceNetworkConfig.DriverOpts
, passed the opts to swarm, and updated tests.- How to verify it
Updated tests.
With this config:
Ran
docker stack deploy --compose-file compose.yml foo
... checked that the option appeared in the container'sinspect
output, and the sysctl was updated in the container.- Description for the changelog