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

mac电脑,同一容器不同服务之间互相访问 #488

Open
YanCunJu opened this issue May 30, 2022 · 4 comments
Open

mac电脑,同一容器不同服务之间互相访问 #488

YanCunJu opened this issue May 30, 2022 · 4 comments

Comments

@YanCunJu
Copy link

使用 dnmp 搭建的容器环境,假如有服务A(本地虚拟域名A)和服务B(本地虚拟域名B),虚拟域名都是宿主机中配置的,在服务A 访问虚拟域名B,提示 "Connection refused",看wiki 文档,是要配置 extra_hosts,但是配置了也没生效。请问是哪里有问题,是因为 mac 环境吗?

@uunmask2000
Copy link

你應該是配在 mac 的host 吧 .

@YanCunJu
Copy link
Author

虚拟域名是配在 mac 的 host,但是现在不同服务,无法访问

@uunmask2000
Copy link

@YanCunJu
試試看 「Network alias」

@Guanjian104
Copy link

想问一下这个有解决办法了吗?遇到了同样的问题。

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

3 participants