Skip to content

Commit bbdeccf

Browse files
authored
Update README.md with note about CACHE_MAX_SIZE
Hi! After poking around a bit with this project I found out that cache size can be limited, which is not described in README. Since it is cool option, it might be worth mentioning this, which this PR provides
1 parent a77f03d commit bbdeccf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Run it like this, replace UPSTREAM with your target address with following requi
88
- `AWS_ACCESS_KEY_ID`
99
- `AWS_SECRET_ACCESS_KEY`
1010

11+
It is also possible to define `CACHE_MAX_SIZE` env to limit maximum cache size on provided volume
12+
1113
For example:
1214

1315
```sh
@@ -19,6 +21,7 @@ docker run --rm --name docker-registry-proxy --net=host \
1921
-e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} \
2022
-e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} \
2123
-e AWS_REGION=${AWS_DEFAULT_REGION} \
24+
-e CACHE_MAX_SIZE=100g \
2225
esailors/aws-ecr-http-proxy:latest
2326
```
2427

0 commit comments

Comments
 (0)