Closed lhbdhr closed 1 year ago
/usr/bin/v2ray run -c /etc/v2fly/config.json
run -c /etc/v2fly/config.json
/usr/bin/v2ray run -c /etc/v2fly/config.json run -c /etc/v2fly/config.json
command修改成run -c /etc/v2fly/config.json吗? 尝试过了,不行。
v2ray run -c /etc/v2fly/config.json: unknown command
Run 'v2ray help run -c' for usage.
# command里无论填写什么 都会有个v2ray打头,然后提示 unknown command
例如:
command:
- ls
# 提示
v2ray ls: unknown command
Run 'v2ray help' for usage.
v2 镜像拉的是最新的马
是最新的呀,昨天全新机器,刚pull的
修改一下docker-compose.yml文件
将
command:
- /usr/bin/v2ray run -c /etc/v2fly/config.json
修改为
command: run -c your_config_path/config.json
修改一下docker-compose.yml文件
将
command: - /usr/bin/v2ray run -c /etc/v2fly/config.json
修改为
command: run -c your_config_path/config.json
牛的,可以了,这是什么原理啊?
问题已解决!感谢各位。
我今天也遇到了 unknown command,按照上面修改还是不行
proxy | v2ray run -c /etc/v2ray/config.json: unknown command proxy | Run 'v2ray help run -c' for usage.
container_name: proxy
image: v2fly/v2fly-core:v5.1.0
volumes:
- $PWD/v2ray-config.json:/etc/v2ray/config.json
command:
- "run -c /etc/v2ray/config.json"
我今天也遇到了 unknown command,按照上面修改还是不行
proxy | v2ray run -c /etc/v2ray/config.json: unknown command proxy | Run 'v2ray help run -c' for usage.
container_name: proxy image: v2fly/v2fly-core:v5.1.0 volumes: - $PWD/v2ray-config.json:/etc/v2ray/config.json command: - "run -c /etc/v2ray/config.json"
修改成这样,命令语句 和 command 必须在一行,而且别加双引号。
command: run -c /etc/v2fly/config.json
使用docker run可以运行,但compose可以修改端口等配置信息,很方便,所以还是想用compose,但是报错。
container 不能正常启动。 docker logs 报错信息:
尝试过修改command,v2ray help都不能正常打印。