From daf09ba161e115c73887147ed5d6aa803943be61 Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Wed, 27 Oct 2021 09:34:10 -0700 Subject: [PATCH] show how to pass CLI arguments via docker run --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a1d247..8c19ffb 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ go build . Alternatively, you can use the [docker image](https://hub.docker.com/r/shizunge/endlessh-go): ``` -sudo docker run -d -p 2222:2222 shizunge/endlessh-go +sudo docker run -d -p 2222:2222 shizunge/endlessh-go -logtostderr -v=1 ``` It listens to port `2222` by default. @@ -31,7 +31,7 @@ Then you can try to connect to the endlessh server. Your SSH client should hang ssh -p 2222 localhost ``` -If you want log like the [C implementation](https://github.com/skeeto/endlessh), you need to set both CLI arguments `-logtostderr` and `-v=1`, then the log will go to the stderr. You can set different log destinations via CLI arguments. +If you want log like the [C implementation](https://github.com/skeeto/endlessh), you need to set both CLI arguments `-logtostderr` and `-v=1`, then the log will go to stderr. You can set different log destinations via CLI arguments. ## Usage