Commit 8c9668c
feat: fail fast when DOCKER_HOST points to an external daemon (workflow-scope DinD) (#1909)
* Initial plan
* feat: detect workflow-scope DinD (DOCKER_HOST) and fail fast
Add checkDockerHost() to src/cli.ts that inspects DOCKER_HOST on startup.
If it points at a non-default socket (e.g. tcp://localhost:2375 for a DinD
sidecar), AWF exits immediately with a clear error explaining why it is
incompatible and pointing at the new docs section.
Also add a "Workflow-Scope DinD Incompatibility" section to docs/usage.md
documenting the root cause, the error message users will see, and the
--enable-dind workaround for agents that genuinely need Docker access.
Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/d99ee10d-b3d6-4811-a197-9eb8bb15da2a
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Landon Cox <landon.cox@microsoft.com>1 parent 90c7f38 commit 8c9668c
1 file changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
894 | 903 | | |
895 | 904 | | |
896 | 905 | | |
| |||
903 | 912 | | |
904 | 913 | | |
905 | 914 | | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | 915 | | |
911 | | - | |
912 | | - | |
| 916 | + | |
| 917 | + | |
913 | 918 | | |
914 | 919 | | |
915 | 920 | | |
| |||
920 | 925 | | |
921 | 926 | | |
922 | 927 | | |
923 | | - | |
| 928 | + | |
924 | 929 | | |
925 | 930 | | |
926 | 931 | | |
| |||
0 commit comments