From 5852f48ca5e0c6dee6ff68a6e8f490514c679b9c Mon Sep 17 00:00:00 2001 From: Sayan Biswas Date: Thu, 30 Jun 2022 14:59:36 +0530 Subject: [PATCH 1/2] Fix instructions in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 15c738fbf..511ff1956 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,7 @@ surprises. Always choose some version tag. Also, if you have `go` installed, you can always download this tool with `go get`: ```console -go get github.com/9seconds/mtg/v2 +go install github.com/9seconds/mtg/v2@latest ``` #### Build from sources @@ -338,7 +338,7 @@ $ sudo systemctl start mtg or you can run a docker image ```console -docker run -d -v /etc/mtg.toml:/config.toml -p 443:3128 --name mtg-proxy --restart=unless-stopped nineseconds/mtg:2 +docker run -d -v /etc/mtg.toml:$PWD/config.toml -p 443:3128 --name mtg-proxy --restart=unless-stopped nineseconds/mtg:2 ``` where _443_ is a host port (a port you want to connect to from a From 1cdaaa16b0c99aa87faca7a28b5d4c4c05ba6693 Mon Sep 17 00:00:00 2001 From: Sayan Biswas Date: Sat, 2 Jul 2022 17:36:03 +0530 Subject: [PATCH 2/2] change usage of $PWD in docker command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 511ff1956..0d5e55d48 100644 --- a/README.md +++ b/README.md @@ -338,7 +338,7 @@ $ sudo systemctl start mtg or you can run a docker image ```console -docker run -d -v /etc/mtg.toml:$PWD/config.toml -p 443:3128 --name mtg-proxy --restart=unless-stopped nineseconds/mtg:2 +docker run -d -v $PWD/config.toml:config.toml -p 443:3128 --name mtg-proxy --restart=unless-stopped nineseconds/mtg:2 ``` where _443_ is a host port (a port you want to connect to from a