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

请问Docker images使用的是多少端口呢,不需要开端口吗 我run的时候使用-P(大写的P)run 并没有随机给端口 #15

Closed
mhpsy opened this issue Aug 24, 2021 · 3 comments
Labels
question Further information is requested

Comments

@mhpsy
Copy link

mhpsy commented Aug 24, 2021

我不是很清楚怎么回事,我不是很会用dockers-compose,
image

@staugur
Copy link
Member

staugur commented Aug 24, 2021

端口9514,dockerfile暴露了,docker-compose也发布了,up运行后,正常本地9514端口会监听,有sapic进程

@staugur
Copy link
Member

staugur commented Aug 28, 2021

如果没问题,稍后将关闭Issue

staugur added a commit that referenced this issue Aug 28, 2021
- change config: host(127.0.0.1 to 0.0.0.0)
- dockerfile add `EXPOSE` (close #15)
@staugur
Copy link
Member

staugur commented Aug 28, 2021

不好意思,我看了下Dockerfile,发现没有Expose,应该是没它,所以Run时docker无法确定端口,故无映射。

目前可以使用host模式,或指定映射9514端口(注意目前版本默认监听主机127.0.0.1,此方式需配置监听0.0.0.0)。

dev分支的新提交已增加Expose~

@staugur staugur closed this as completed Aug 28, 2021
@staugur staugur added bug Something isn't working question Further information is requested and removed bug Something isn't working labels Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants