We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当我想使用自己的config.json时,我可以使用-v ${APPDATADIR}/v2ray/config:/etc/v2ray. 但当我想使用自定义的资源文件时,由于缺省的资源文件路径中还有v2ray执行文件,我不能使用-v ${APPDATADIR}/v2ray/asset:/usr/bin/v2ray, 会报错找不到可执行文件。
建议在dockerfile中作如下修改: COPY --from=builder /usr/bin/v2ray/geoip.dat /newpath/to/asset/ COPY --from=builder /usr/bin/v2ray/geosite.dat /newpath/to/asset/ ENV V2RAY_LOCATION_ASSET /newpath/to/asset/
其实我一直认为v2ray-core把资源文件放在/usr/bin里不是太好, /usr/bin里一大堆可执行文件和软链接文件中放着一个v2ray文件夹总觉得有点奇怪。
The text was updated successfully, but these errors were encountered:
原来可以直接写 -v ${APPDATADIR}/v2ray/asset/h2y.dat:/usr/bin/v2ray/h2y.dat。
Sorry, something went wrong.
No branches or pull requests
当我想使用自己的config.json时,我可以使用-v ${APPDATADIR}/v2ray/config:/etc/v2ray.
但当我想使用自定义的资源文件时,由于缺省的资源文件路径中还有v2ray执行文件,我不能使用-v ${APPDATADIR}/v2ray/asset:/usr/bin/v2ray, 会报错找不到可执行文件。
建议在dockerfile中作如下修改:
COPY --from=builder /usr/bin/v2ray/geoip.dat /newpath/to/asset/
COPY --from=builder /usr/bin/v2ray/geosite.dat /newpath/to/asset/
ENV V2RAY_LOCATION_ASSET /newpath/to/asset/
其实我一直认为v2ray-core把资源文件放在/usr/bin里不是太好, /usr/bin里一大堆可执行文件和软链接文件中放着一个v2ray文件夹总觉得有点奇怪。
The text was updated successfully, but these errors were encountered: