You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ctr-remote.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,28 @@ Other options are also available for configuring the workload.
132
132
|`-t`or`--terminal`|Attach terminal to the container. This flag must be specified with `-i`|
133
133
|`-i`|Attach stdin to the container|
134
134
135
+
### Prefetch list glob patterns
136
+
137
+
`ctr-remote image optimize` supports specifying a prefetch list file via `--prefetch-list`. Each line can be a path or a glob pattern. Supported patterns:
138
+
139
+
-`*` matches any sequence except `/` (single directory level)
140
+
-`?` matches a single character except `/`
141
+
-`[]` character class, e.g. `[ab]`, `[a-z]`
142
+
-`**` recursive wildcard that can match across `/` (multiple directory levels)
143
+
144
+
Examples:
145
+
146
+
```
147
+
/usr/bin/*
148
+
/usr/lib/**/*.so
149
+
/var/log/**/app.*.log
150
+
/opt/data/img_[ab].png
151
+
```
152
+
153
+
Notes:
154
+
- Empty lines and lines starting with `#` are ignored.
155
+
- Paths are normalized internally; both `/foo/bar` and `foo/bar` are accepted.
156
+
135
157
## Mounting files from the host
136
158
137
159
There are several cases where sharing files from host to the container during optimization is useful.
0 commit comments