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

宿主机可以ping通容器,但是容器ping不通宿主机 #24

Open
yanyulun opened this issue Oct 19, 2023 · 3 comments
Open

宿主机可以ping通容器,但是容器ping不通宿主机 #24

yanyulun opened this issue Oct 19, 2023 · 3 comments

Comments

@yanyulun
Copy link

mac版本13.5.1
docker版本4.22.1

@yanyulun
Copy link
Author

容器之间也不能ping通,A容器172.17.0.3和B容器172.18.0.2不能ping通

@wenjunxiao
Copy link
Owner

容器之间也不能ping通,A容器172.17.0.3和B容器172.18.0.2不能ping通

容器之间网段不同默认不通,需要按照文档增加iptables配置

@wenjunxiao
Copy link
Owner

mac版本13.5.1 docker版本4.22.1

容器访问宿主机应该是docker本来就支持的,可以把desktop-connector停了看是否可以访问

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