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
--image-tag <tag> Container image tag (default: latest)
40
+
--skip-pull Use local images without pulling from registry
41
+
(requires images to be pre-downloaded)
40
42
-V, --version Output the version number
41
43
-h, --help Display help for command
42
44
@@ -500,6 +502,89 @@ For complete tool listings with versions, see [Agent Image Tools Reference](/gh-
500
502
- Subsequent builds use Docker cache and are faster
501
503
- The `full-XX.XX` images require significant disk space (~60GB extracted)
502
504
505
+
## Using Pre-Downloaded Images
506
+
507
+
For offline environments, air-gapped systems, or CI pipelines with image caching, you can use the `--skip-pull` flag to prevent awf from pulling images from the registry. This requires images to be pre-downloaded locally.
-**Images must be pre-downloaded**: Using `--skip-pull` without having the required images will cause Docker to fail
575
+
-**Version compatibility**: Ensure pre-downloaded image versions match the awf version you're using
576
+
-**Not compatible with --build-local**: The `--skip-pull` flag cannot be used with `--build-local` since building requires pulling base images
577
+
-**Default images only**: This works with preset images (`default`, `act`). Custom base images require `--build-local` and cannot use `--skip-pull`
578
+
579
+
### Error Handling
580
+
581
+
If images are not available locally when using `--skip-pull`, you'll see an error like:
582
+
```
583
+
Error: unable to find image 'ghcr.io/github/gh-aw-firewall/agent:latest' locally
584
+
```
585
+
586
+
To fix this, remove `--skip-pull` to allow automatic pulling, or pre-download the images first.
587
+
503
588
## Chroot Mode
504
589
505
590
The `--enable-chroot` flag enables transparent access to host binaries (Python, Node.js, Go, etc.) while maintaining network isolation. This is useful for GitHub Actions runners with pre-installed tools.
0 commit comments