-
Notifications
You must be signed in to change notification settings - Fork 17
docs: fix inaccuracies in CLI reference #1611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -38,7 +38,7 @@ awf [options] -- <command> | |||||||
| | `--exclude-env <name>` | string | `[]` | Exclude a variable from `--env-all` passthrough (repeatable) | | ||||||||
| | `-v, --mount <host:container[:mode]>` | string | `[]` | Volume mount (repeatable) | | ||||||||
| | `--container-workdir <dir>` | string | User home | Working directory inside container | | ||||||||
| | `--dns-servers <servers>` | string | `8.8.8.8,8.8.4.4` | Trusted DNS servers (comma-separated) | | ||||||||
| | `--dns-servers <servers>` | string | Auto-detected | Trusted DNS servers (comma-separated; auto-detected from host, falls back to `8.8.8.8,8.8.4.4`) | | ||||||||
| | `--proxy-logs-dir <path>` | string | — | Directory to save Squid proxy logs to | | ||||||||
| | `--enable-host-access` | flag | `false` | Enable access to host services via host.docker.internal | | ||||||||
| | `--allow-host-ports <ports>` | string | `80,443` | Ports to allow when using --enable-host-access | | ||||||||
|
|
@@ -169,7 +169,7 @@ Set logging verbosity. | |||||||
| Keep containers and configuration files after command exits for debugging. | ||||||||
|
|
||||||||
| :::note | ||||||||
| Requires manual cleanup: `docker stop awf-squid awf-copilot && docker network rm awf-net` | ||||||||
| Requires manual cleanup: `docker stop awf-squid awf-agent && docker network rm awf-net` | ||||||||
| ::: | ||||||||
|
|
||||||||
| ### `--tty` | ||||||||
|
|
@@ -246,9 +246,11 @@ Mount host directories into container. Format: `host_path:container_path[:ro|rw] | |||||||
| - Host path must exist | ||||||||
| - Mode: `ro` (read-only) or `rw` (read-write) | ||||||||
|
|
||||||||
| **Default mounts:** | ||||||||
| - Host filesystem at `/host` (read-only) | ||||||||
| - User home directory (read-write) | ||||||||
| **Default mounts (selective bind mounts, not a blanket host FS mount):** | ||||||||
| - System binaries (`/usr`, `/bin`, `/sbin`, `/lib`, `/lib64`, `/opt`, `/sys`, `/dev`) at `/host` (read-only) | ||||||||
|
||||||||
| - System binaries (`/usr`, `/bin`, `/sbin`, `/lib`, `/lib64`, `/opt`, `/sys`, `/dev`) at `/host` (read-only) | |
| - System binaries (`/usr`, `/bin`, `/sbin`, `/lib`, `/lib64`, `/opt`, `/sys`, `/dev`) under `/host` (read-only) |
Copilot
AI
Apr 2, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section implies that omitting --allow-host-ports always results in only 80/443 being allowed, but there’s an important exception: when --allow-domains includes the special localhost keyword, the CLI auto-enables host access and auto-populates a default dev port list (3000, 4200, 5173, 8080, etc.) unless the user explicitly sets --allow-host-ports. Please document that exception here (or in the preceding --enable-host-access warning) so readers don’t get surprised by the broader default when using localhost.
| - Without `--allow-host-ports`: Only ports 80 and 443 are allowed | |
| - Without `--allow-host-ports`: Only ports 80 and 443 are allowed in the normal case | |
| - Exception: If `--allow-domains` includes the special `localhost` keyword and you do not set `--allow-host-ports`, host access is auto-enabled and a default set of common development ports is allowed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The manual cleanup command stops containers but doesn’t remove them;
docker network rm awf-netwill fail if the (even stopped) containers are still attached to the network. Consider switching todocker rm -f awf-squid awf-agent(ordocker stop ... && docker rm ...) before removing the network, consistent with other docs in the repo.