mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
RunOptions embeds CreateOptions, which suggests every creation option applies to the one-off's dependencies; in reality only Build, IgnoreOrphans, RemoveOrphans and QuietPull are propagated (startDependencies builds a fresh CreateOptions from exactly those four). Setting Recreate or Inherit on a RunOptions was a silent no-op. The same struct also serves Exec, which honors only the exec-relevant subset of its ~20 fields. Both facts are now stated on the type, the embedding and the Exec-only Index field. Part of #14074 (B: pkg/api promises things the implementation does not honor). Signed-off-by: Nicolas De Loof <[email protected]>