且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Docker容器无法连接到链接的容器服务

更新时间:2022-11-30 08:29:10

好,telnet的问题似乎与telnet客户端有关在高山linux上,因为以下两个命令显示了容器上的端口是打开的:

Well, the problem with telnet seems to be related to the telnet client on alpine linux since the following two commands showed me that the ports on the containers were open:

nmap -p27017 172.17.0.3
nc -vz 172.17.0.3 27017

主要关注我发出的elnet命令,我相信问题与端口关闭或其他原因有关;而且我忽略了用于将其连接到服务的应用程序上的配置文件(文件名错误),我的错。

Being focused mainly on the telnet command I issued, I believed that the problem was related to the ports being closed or something; and I overlooked the configuration file on the app that was being used to connect it to the services (it was the wrong filename), my bad.

现在一切正常。