-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
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
请求帮助,想使用docker compose创建但是报错。 #46
Comments
|
command修改成run -c /etc/v2fly/config.json吗?
|
v2 镜像拉的是最新的马 |
是最新的呀,昨天全新机器,刚pull的 |
修改一下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
|
修改成这样,命令语句 和 command 必须在一行,而且别加双引号。
|
使用docker run可以运行,但compose可以修改端口等配置信息,很方便,所以还是想用compose,但是报错。
# docker run -d --name v2ray -v $PWD/config.json:/etc/v2fly/config.json -v $PWD/ca:/etc/v2fly/ca -p 443:443 v2fly/v2fly-core run -c /etc/v2fly/config.json
container 不能正常启动。
docker logs 报错信息:
尝试过修改command,v2ray help都不能正常打印。
The text was updated successfully, but these errors were encountered: