git clone https://github.com/bolongsir/ngrok.git
cd ngrok
docker build -t bolongsir/ngrok .
- you must mount your folder (E.g
/data/ngrok
) to container/myfiles
- if it is the first run, it will generate the binaries file and CA in your floder
/data/ngrok
docker run -idt --name ngrok-server \
-v /data/ngrok:/myfiles \
-e DOMAIN='hotxcx.cn' bolongsir/ngrok /bin/sh /server.sh