Docker

The V2Ray core is integrated in the Docker image, so the core does not need to be installed.

Docker Method

Use the docker command to deploy.

# run v2raya
docker run -d \
  --restart=always \
  --privileged \
  --network=host \
  --name v2raya \
  -e V2RAYA_ADDRESS=0.0.0.0:2017 \
  -v /lib/modules:/lib/modules:ro \
  -v /etc/resolv.conf:/etc/resolv.conf \
  -v /etc/v2raya:/etc/v2raya \
  mzz2017/v2raya

If you use MacOSX or other environments that do not support host mode , you cannot use the global transparent proxy in this case, or you do not want to use the global transparent proxy, the docker command will be slightly different:

# run v2raya
docker run -d \
  -p 2017:2017 \
  -p 20170-20172:20170-20172 \
  --restart=always \
  --name v2raya \
  -v /etc/v2raya:/etc/v2raya \
  mzz2017/v2raya

Edit this page on GitHub

Last update on: Apr 28, 2022 17:57 +0800

Contributors: cubercsl mzz2017 Dup4