lotosbin / docker-kcptun-client

docker kcptun client
MIT License
0 stars 2 forks source link

how to disable stdout? #2

Open elfive opened 6 years ago

elfive commented 6 years ago

i'm running a kcptun client on a synology NAS(DSM 6.1.5-15254); i found all the stdout content will be written in a local disk file,which stops the disk from hibernation; but synology doesn't support disable docker log, How could I do to disable those useless stdout info? I tried to modify ur docker file, but after I build docker image with command "docker build kcptun", the result seems quilt different from the synology GUI's result. can you help me? thank you very much.

elfive commented 6 years ago

I modified Dockerfile like this:

ENV TARGET_ADDR xxx.xxx.xxx.xxx ENV TARGET_PORT 29901 ENV LISTEN_ADDR 0.0.0.0 ENV LISTEN_PORT 59901 ENV MODE fast2 ENV CRYPT salsa20 ENV KEY ******** ENV CONN 0 ENV MTU 1350 ENV SNDWND 1024 ENV RCVWND 1024 ENV DATASHARD 7 ENV PARITYSHARD 2

EXPOSE $TARGET_PORT/udp EXPOSE $LISTEN_PORT/tcp EXPOSE $LISTEN_PORT/udp

CMD client_linux_amd64 -l $LISTEN_ADDR:$LISTEN_PORT \ -r $TARGET_ADDR:$TARGET_PORT \ --key $KEY \ --crypt $CRYPT \ --mode $MODE \ --mtu $MTU \ --sndwnd $SNDWND \ --rcvwnd $RCVWND \ --datashard $DATASHARD \ --parityshard $PARITYSHARD \ &> /dev/null