2015-12-25 02:27:13 +00:00
|
|
|
Docker build for v2ray
|
|
|
|
=======================
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
|
|
|
To build the image:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./build.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
Then spin up a v2ray instance with:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./run.sh
|
|
|
|
```
|
|
|
|
|
2016-02-22 09:57:43 +00:00
|
|
|
The docker image will generate a server config file with random user id on first run.
|
|
|
|
You can get see it with:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker logs v2ray
|
|
|
|
```
|
2015-12-25 02:27:13 +00:00
|
|
|
|
2016-02-22 10:08:45 +00:00
|
|
|
You can also specify config file by manual with:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker run -d --name=v2ray -p 27183:27183 -v /config/file.json:/go/server-config.json $USER/v2ray
|
|
|
|
```
|
|
|
|
|
2015-12-25 02:27:13 +00:00
|
|
|
To tail the access log, run:
|
|
|
|
|
|
|
|
```bash
|
2016-02-22 10:15:31 +00:00
|
|
|
docker exec v2ray tail -F /go/access.log
|
2015-12-25 02:27:13 +00:00
|
|
|
```
|