Closed hktalent closed 5 years ago
搞定
docker run -d --name v2ray -v /etc/v2ray:/etc/v2ray -p 53:53 v2ray/official v2ray -config=/etc/v2ray/config.json
必须是:/etc/v2ray/config.json
docker pull v2ray/official
docker ps -a |grep v2ray|awk '{print $1}'|xargs -I % bash -c "docker stop %;docker rm %"
docker run -d --name v2ray -v /etc/v2ray:/etc/v2ray -p 53:53 v2ray/official v2ray -config=/etc/v2ray/config.json