Skip to content
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

ubuntu docker下无法启动 #279

Closed
buxuku opened this issue Jan 11, 2020 · 3 comments
Closed

ubuntu docker下无法启动 #279

buxuku opened this issue Jan 11, 2020 · 3 comments

Comments

@buxuku
Copy link

buxuku commented Jan 11, 2020

在ubuntu环境下基于最新版本的image安装,运行docker后,却没办法启动v2ray,进入docker提示以下信息

V2Ray 4.22.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.13.5 linux/amd64)
A unified platform for anti-censorship.
Failed to start v2ray.com/core/app/proxyman/inbound: failed to listen TCP on 34319 > v2ray.com/core/transport/internet: failed to listen on address: 0.0.0.0:34319 > listen udp 0.0.0.0:34319: bind: address already in use

v2ray stoped..

信息显示是端口的问题,请问我应该怎样进行宿主端口的绑定呢?

@Jrohy
Copy link
Owner

Jrohy commented Jan 11, 2020

刚好34319端口被占了,进去容器后运行v2ray new重新生成新的配置文件新的端口就好

@Jrohy
Copy link
Owner

Jrohy commented Jan 11, 2020

容器用的是宿主机网络的,--network=host, 不需要进行特定端口绑定的

@Jrohy Jrohy closed this as completed in 8022f5c Jan 11, 2020
@Jrohy
Copy link
Owner

Jrohy commented Jan 11, 2020

3.7.7版本已添加生成随机端口时进行检查端口是否占用

bigbighill pushed a commit to bigbighill/multi-v2ray that referenced this issue Feb 6, 2020
Jrohy added a commit that referenced this issue Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants