Skip to content

Commit a2fc5c2

Browse files
updated the examples (#23539)
<!--Delete sections as needed --> ## Description <!-- Tell us what you did and why --> Specified separate examples for PAC file and PAC script to avoid confusion. ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [X] Editorial review - [ ] Product review
1 parent acd7d2d commit a2fc5c2

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

content/manuals/desktop/setup/install/mac-install.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,16 @@ The `install` command accepts the following flags:
144144
- `--override-proxy-pac=<PAC file URL>`: Sets the PAC file URL. This setting takes effect only when using `manual` proxy mode.
145145
- `--override-proxy-embedded-pac=<PAC script>`: Specifies an embedded PAC (Proxy Auto-Config) script. This setting takes effect only when using `manual` proxy mode and has precedence over the `--override-proxy-pac` flag.
146146

147-
###### Example of specifying PAC file / PAC script
147+
###### Example of specifying PAC file
148148

149149
```console
150-
$ sudo /Applications/Docker.app/Contents/MacOS/install --user testuser --proxy-http-mode="manual" --override-proxy-pac="http://localhost:8080/myproxy.pac" --override-proxy-embedded-pac="function FindProxyForURL(url, host) { return \"DIRECT\"; }"
150+
$ sudo /Applications/Docker.app/Contents/MacOS/install --user testuser --proxy-http-mode="manual" --override-proxy-pac="http://localhost:8080/myproxy.pac"
151+
```
152+
153+
###### Example of specifying PAC script
154+
155+
```console
156+
$ sudo /Applications/Docker.app/Contents/MacOS/install --user testuser --proxy-http-mode="manual" --override-proxy-embedded-pac="function FindProxyForURL(url, host) { return \"DIRECT\"; }"
151157
```
152158

153159
> [!TIP]

content/manuals/desktop/setup/install/windows-install.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,16 @@ The `install` command accepts the following flags:
288288
- `--override-proxy-pac=<PAC file URL>`: Sets the PAC file URL. This setting takes effect only when using `manual` proxy mode.
289289
- `--override-proxy-embedded-pac=<PAC script>`: Specifies an embedded PAC (Proxy Auto-Config) script. This setting takes effect only when using `manual` proxy mode and has precedence over the `--override-proxy-pac` flag.
290290

291-
###### Example of specifying PAC file / PAC script
291+
###### Example of specifying PAC file
292292

293293
```console
294-
"Docker Desktop Installer.exe" install --proxy-http-mode="manual" --override-proxy-pac="http://localhost:8080/myproxy.pac" --override-proxy-embedded-pac="function FindProxyForURL(url, host) { return \"DIRECT\"; }"
294+
"Docker Desktop Installer.exe" install --proxy-http-mode="manual" --override-proxy-pac="http://localhost:8080/myproxy.pac"
295+
```
296+
297+
###### Example of specifying PAC script
298+
299+
```console
300+
"Docker Desktop Installer.exe" install --proxy-http-mode="manual" --override-proxy-embedded-pac="function FindProxyForURL(url, host) { return \"DIRECT\"; }"
295301
```
296302

297303
##### Data root and disk location

0 commit comments

Comments
 (0)