Skip to content

Commit 7e50822

Browse files
committed
Add proxy settings in the examples
1 parent 63ca0d2 commit 7e50822

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,26 @@ docker run \
106106
docker.io/library/alpine
107107
```
108108

109+
## Using a proxy
110+
111+
To use a proxy, set the standard `http_proxy` and `https_proxy` variables when running the container.
112+
113+
Example:
114+
115+
```
116+
docker run --rm \
117+
-e http_proxy="http://my-proxy:3128" \
118+
-e https_proxy="http://my-proxy:3128" \
119+
quay.io/sysdig/secure-inline-scan:2 \
120+
--sysdig-url <omitted> \
121+
--sysdig-token <omitted> \
122+
alpine
123+
```
124+
125+
Both `http_proxy` and `https_proxy` variables are required, as some tools will use per-scheme proxy.
126+
127+
The `no_proxy` variable can be used to define a list of hosts that don't use the proxy.
128+
109129
# Other integrations and examples
110130

111131
In this [repository](https://github.com/sysdiglabs/secure-inline-scan-examples/) you can find the following examples in alphabetical order:

0 commit comments

Comments
 (0)