Skip to content

Commit e3c238f

Browse files
committed
Add examples in readme
1 parent 9540661 commit e3c238f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ docker run -d --name http-proxy -p <PROXY_PORT>:80 -e PROXY_USER=<PROXY_USER> -e
1313
- Change **PROXY_PORT** for custom proxy port
1414

1515
## Test running service
16+
### with auth
1617
```bash
17-
curl --proxy <DOCKER_MACHINE_IP>:<PROXY_PORT> https://ya.ru
18+
curl --proxy http://<PROXY_USER>:<PROXY_PASS>@<DOCKER_MACHINE_IP>:<PROXY_PORT> https://ya.ru
19+
```
20+
### without auth
21+
```bash
22+
curl --proxy http://<DOCKER_MACHINE_IP>:<PROXY_PORT> https://ya.ru
1823
```
1924
result must show docker host ip (for bridged network)

0 commit comments

Comments
 (0)