Command reference
ed machines docker compose compare
Compares two masked revision files saved by
compose config. No tool runs and nothing on the
machine changes.
ed machines docker compose compare <before> <after> [--json] [--output <file>]| Name | Type / values | Default | What it does |
|---|---|---|---|
<before> |
local file, required | none | Earlier revision. |
<after> |
local file, required | none | Later revision. |
--json |
flag | off | Print the comparison envelope as JSON. |
--output |
new local file | none | Also write the envelope there. An existing file is never replaced. |
The envelope holds before, after and changes. Each change has service,
field (Image, Bind mounts or Ports), before and after; a service that
exists on one side only has an empty array on the other. The text output also
lists each revision's port conflicts.
Both revisions must share the same machine, project and directory. Each file is limited to 6 MiB, masked again and rebuilt before comparison, and an invalid file fails without printing its content.
Examples
ed machines docker compose compare before.json after.jsoned machines docker compose compare before.json after.json --json --output review.json