From 26d189ed77e88a022b421e80e60814214b9301f3 Mon Sep 17 00:00:00 2001 From: Baokun Lee Date: Sat, 29 Dec 2018 16:36:36 +0800 Subject: [PATCH] make readme cleaner --- README.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ef99d96..55e6c5d 100644 --- a/README.md +++ b/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 -## Docker build +## Use docker image - docker build . --no-cache -t goproxy/goproxy:latest - -## Docker run - - docker run --name goproxy -d -p80:8081 goproxy/goproxy + docker run -d -p80:8081 goproxy/goproxy 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 @@ -29,4 +25,5 @@ Use the -v flag to persisting the proxy module data (change ___cacheDir___ to yo ## 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.