1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-03 17:23:43 -04:00
v2fly/tools/docker
2016-02-23 12:23:22 +08:00
..
build.sh
docker-entrypoint.sh [docker] refine Dockerfile 2016-02-23 12:23:22 +08:00
Dockerfile [docker] refine Dockerfile 2016-02-23 12:23:22 +08:00
gen-server-cfg.sh
README.md
run.sh

Docker build for v2ray

Usage

To build the image:

./build.sh

Then spin up a v2ray instance with:

./run.sh

The docker image will generate a server config file with random user id on first run. You can get see it with:

docker logs v2ray

You can also specify config file by manual with:

docker run -d --name=v2ray -p 27183:27183 -v /config/file.json:/go/server-config.json $USER/v2ray

To tail the access log, run:

docker exec v2ray tail -F /go/access.log