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

无法访问 #5

Closed
35465erffd opened this issue Jan 17, 2021 · 2 comments
Closed

无法访问 #5

35465erffd opened this issue Jan 17, 2021 · 2 comments

Comments

@35465erffd
Copy link

为什么不能访问不了ip:60000
docker ps 查看容器没有打开任何端口
我是严格按照步骤进行的

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
63c6fdd2c1be registry.cn-shenzhen.aliyuncs.com/toys/viper:latest "viper start -pw leg…" 7 minutes ago Up 7 minutes viper-container

@FunnyWolf
Copy link
Owner

为什么不能访问不了ip:60000
docker ps 查看容器没有打开任何端口
我是严格按照步骤进行的

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
63c6fdd2c1be registry.cn-shenzhen.aliyuncs.com/toys/viper:latest "viper start -pw leg…" 7 minutes ago Up 7 minutes viper-container

容器使用的是host network,所以不用导出任何端口,类似直接桥接主机网卡的方式.看日志输出容器已经启动7分钟了,是使用的vps的外网ip:60000访问的吗?或者docker exec -it viper-container bash进入容器,然后netstat -anpt |grep 60000 看nginx起来没

@35465erffd
Copy link
Author

ok了 我没有放行端口😂😂😂😂😂😂😂😂😂

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