简体   繁体   English

Docker中的WordPress容器如何连接域名?

[英]How to connect domain name with WordPress container in Docker?

I have installed a WordPress container in the Docker app on my server.我在我的服务器上的 Docker 应用程序中安装了 WordPress 容器。 It's working when I am using my IP address and the port number myip:8000 .当我使用我的 IP 地址和端口号myip:8000时,它正在工作。 But the question is that how to connect with a domain.但问题是如何与域连接。 I have added "A" records on my DNS management but not working.我在 DNS 管理中添加了“A”记录,但无法正常工作。

Try to find on which interface is the container listening.尝试查找容器在哪个接口上侦听。 It may be it listens on local interface only: 10.10.10.10:8000 and not on external IP wxyz:8000它可能只在本地接口上侦听: 10.10.10.10:8000 :8000 而不是在外部 IP wxyz:8000

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM