v3.3.0 b164fe9

volumes.md RawHistoryFolder

gordon volumes

List and clean up Docker volumes managed by Gordon.

Commands

gordon volumes list

List all Gordon-managed volumes.

gordon volumes list
gordon volumes list --json
Flag Description
--json Output as JSON

gordon volumes prune

Remove app-owned volumes that were explicitly released and are no longer used by any container.

gordon volumes prune
gordon volumes prune --dry-run
gordon volumes prune --no-confirm
Flag Description
--dry-run Report the plan without deleting
--no-confirm Skip confirmation prompt
--json Output as JSON

What survives

A volume is removed only when all of the following hold:

  • A durable ownership record explicitly marks it released.
  • The runtime labels agree with that record: the app, the app incarnation UUID, and the service.
  • No container mounts it.

Everything else survives. Attached and retained volumes, volumes carrying only gordon.managed, volumes with no Gordon provenance, and volumes whose ownership cannot be established all survive. Ownership is never inferred from the volume name, and labels alone never make a volume deletable.

With current metadata no lifecycle marks a volume released, so a volume prune normally reports a zero-deletion success. The command still lists every candidate with its verdict and reason, and --json returns the same plan shape as gordon images prune.

source
1# gordon volumes
2
3List and clean up Docker volumes managed by Gordon.
4
5## Commands
6
7### `gordon volumes list`
8
9List all Gordon-managed volumes.
10
11```bash
12gordon volumes list
13gordon volumes list --json
14```
15
16| Flag | Description |
17|------|-------------|
18| `--json` | Output as JSON |
19
20### `gordon volumes prune`
21
22Remove app-owned volumes that were explicitly released and are no longer used by any container.
23
24```bash
25gordon volumes prune
26gordon volumes prune --dry-run
27gordon volumes prune --no-confirm
28```
29
30| Flag | Description |
31|------|-------------|
32| `--dry-run` | Report the plan without deleting |
33| `--no-confirm` | Skip confirmation prompt |
34| `--json` | Output as JSON |
35
36#### What survives
37
38A volume is removed only when all of the following hold:
39
40- A durable ownership record explicitly marks it `released`.
41- The runtime labels agree with that record: the app, the app incarnation UUID, and the service.
42- No container mounts it.
43
44Everything else survives. Attached and retained volumes, volumes carrying only `gordon.managed`, volumes with no Gordon provenance, and volumes whose ownership cannot be established all survive. Ownership is never inferred from the volume name, and labels alone never make a volume deletable.
45
46With current metadata no lifecycle marks a volume `released`, so a volume prune normally reports a zero-deletion success. The command still lists every candidate with its verdict and reason, and `--json` returns the same plan shape as `gordon images prune`.
47
48## Related
49
50- [Volumes Configuration](../config/volumes.md)
51- [Images](./images.md)

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close