Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/reference/commandline/container_prune.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,19 @@ Total reclaimed space: 212 B
### <a name="filter"></a> Filtering (--filter)

The filtering flag (`--filter`) format is of "key=value". If there is more
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"`)
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"`).

When multiple filters are provided, they are combined as follows:

- Multiple filters with **different keys** are combined using AND logic.
A container must satisfy all filter conditions to be pruned.
- Multiple filters with the **same key** are combined using OR logic.
A container is pruned if it matches any of the values for that key.

For example, `--filter "label=foo" --filter "until=24h"` prunes containers
that have the `foo` label **and** were created more than 24 hours ago.
Conversely, `--filter "label=foo" --filter "label=bar"` prunes containers
that have **either** the `foo` **or** `bar` label.

The currently supported filters are:

Expand Down
14 changes: 13 additions & 1 deletion docs/reference/commandline/image_prune.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,19 @@ Total reclaimed space: 16.43 MB
### <a name="filter"></a> Filtering (--filter)

The filtering flag (`--filter`) format is of "key=value". If there is more
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"`)
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"`).

When multiple filters are provided, they are combined as follows:

- Multiple filters with **different keys** are combined using AND logic.
An image must satisfy all filter conditions to be pruned.
- Multiple filters with the **same key** are combined using OR logic.
An image is pruned if it matches any of the values for that key.

For example, `--filter "label=foo" --filter "until=24h"` prunes images
that have the `foo` label **and** were created more than 24 hours ago.
Conversely, `--filter "label=foo" --filter "label=bar"` prunes images
that have **either** the `foo` **or** `bar` label.

The currently supported filters are:

Expand Down
14 changes: 13 additions & 1 deletion docs/reference/commandline/network_prune.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,19 @@ n2
### <a name="filter"></a> Filtering (--filter)

The filtering flag (`--filter`) format is of "key=value". If there is more
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"`)
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"`).

When multiple filters are provided, they are combined as follows:

- Multiple filters with **different keys** are combined using AND logic.
A network must satisfy all filter conditions to be pruned.
- Multiple filters with the **same key** are combined using OR logic.
A network is pruned if it matches any of the values for that key.

For example, `--filter "label=foo" --filter "until=24h"` prunes networks
that have the `foo` label **and** were created more than 24 hours ago.
Conversely, `--filter "label=foo" --filter "label=bar"` prunes networks
that have **either** the `foo` **or** `bar` label.

The currently supported filters are:

Expand Down
14 changes: 13 additions & 1 deletion docs/reference/commandline/system_prune.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,19 @@ Total reclaimed space: 13.5 MB
### <a name="filter"></a> Filtering (--filter)

The filtering flag (`--filter`) format is of "key=value". If there is more
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"`)
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"`).

When multiple filters are provided, they are combined as follows:

- Multiple filters with **different keys** are combined using AND logic.
An item must satisfy all filter conditions to be pruned.
- Multiple filters with the **same key** are combined using OR logic.
An item is pruned if it matches any of the values for that key.

For example, `--filter "label=foo" --filter "until=24h"` prunes items
that have the `foo` label **and** were created more than 24 hours ago.
Conversely, `--filter "label=foo" --filter "label=bar"` prunes items
that have **either** the `foo` **or** `bar` label.

The currently supported filters are:

Expand Down
14 changes: 13 additions & 1 deletion docs/reference/commandline/volume_prune.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,19 @@ Use the `--all` flag to prune both unused anonymous and named volumes.
### <a name="filter"></a> Filtering (--filter)

The filtering flag (`--filter`) format is of "key=value". If there is more
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"`)
than one filter, then pass multiple flags (e.g., `--filter "foo=bar" --filter "bif=baz"`).

When multiple filters are provided, they are combined as follows:

- Multiple filters with **different keys** are combined using AND logic.
A volume must satisfy all filter conditions to be pruned.
- Multiple filters with the **same key** are combined using OR logic.
A volume is pruned if it matches any of the values for that key.

For example, `--filter "label=foo" --filter "label=bar"` prunes volumes that
have **either** the `foo` **or** `bar` label, while
`--filter "label=foo" --filter "label!=bar"` prunes volumes that have the
`foo` label **and** do not have the `bar` label.

The currently supported filters are:

Expand Down