mirror of https://github.com/goproxyio/goproxy
make readme cleaner
parent
63c4829b60
commit
26d189ed77
13
README.md
13
README.md
|
@ -11,17 +11,13 @@ A global proxy for go modules. see: [https://goproxy.io](https://goproxy.io)
|
||||||
|
|
||||||
./goproxy -listen=0.0.0.0:80 -cacheDir=/data
|
./goproxy -listen=0.0.0.0:80 -cacheDir=/data
|
||||||
|
|
||||||
## Docker build
|
## Use docker image
|
||||||
|
|
||||||
docker build . --no-cache -t goproxy/goproxy:latest
|
docker run -d -p80:8081 goproxy/goproxy
|
||||||
|
|
||||||
## Docker run
|
|
||||||
|
|
||||||
docker run --name goproxy -d -p80:8081 goproxy/goproxy
|
|
||||||
|
|
||||||
Use the -v flag to persisting the proxy module data (change ___cacheDir___ to your own dir):
|
Use the -v flag to persisting the proxy module data (change ___cacheDir___ to your own dir):
|
||||||
|
|
||||||
docker run --name goproxy -d -p80:8081 -v cacheDir:/go goproxy/goproxy
|
docker run -d -p80:8081 -v cacheDir:/go goproxy/goproxy
|
||||||
|
|
||||||
## Docker Compose
|
## Docker Compose
|
||||||
|
|
||||||
|
@ -29,4 +25,5 @@ Use the -v flag to persisting the proxy module data (change ___cacheDir___ to yo
|
||||||
|
|
||||||
## Appendix
|
## Appendix
|
||||||
|
|
||||||
1. set `$GOPROXY` to change your proxy or disable the proxy
|
1. set `export GOPROXY=http://localhost` to enable your goproxy.
|
||||||
|
2. set `export GOPROXY=` to disable it.
|
||||||
|
|
Loading…
Reference in New Issue