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
server.NewServer() 用到了 xnet.ParseAddr() , 用到了随机端口。 我想问:如果我将项目打包成docker镜像,容器化运行时,如何映射容器与宿主机的端口?
The text was updated successfully, but these errors were encountered:
docker中使用的话,可以改成固定端口
Sorry, something went wrong.
谢谢,我现在知道了。固定端口是一种方式,还有一种就是docker的 host网络模式 也可以
No branches or pull requests
server.NewServer() 用到了 xnet.ParseAddr() , 用到了随机端口。
我想问:如果我将项目打包成docker镜像,容器化运行时,如何映射容器与宿主机的端口?
The text was updated successfully, but these errors were encountered: