Home > Article > Operation and Maintenance > What should I do if docker cannot connect to port 2375?
Solution to the problem that docker cannot connect to port 2375: 1. Modify Alibaba Cloud configuration access rules; 2. Check the firewall status; 3. Start the firewall; 4. Add port 2375; 5. Restart the firewall.
The operating environment of this article: Windows 7 system, Docker version 20.10.11, Dell G3 computer.
What should I do if docker cannot connect to 2375?
Solution to the problem that docker’s 2375 port cannot be connected remotely (Part 1)
Just like the title. The situation I encountered
The backend interface is deployed on the Alibaba Cloud server. Now the back-end interface is uploaded locally through port 2375 of docker, and there are several pitfalls.
First, Alibaba Cloud configures access rules. External ports must be added manually here, otherwise they may be blocked.
The other thing is that when I connected, I found that if the firewall was not running, port 2375 could not be connected. . .
You may try various postures using the exhaustive method.
A few instructions
#查看防火墙状态 systemctl status firewalld #启动防火墙 没有提示 systemctl start firewalld #添加2375端口 firewall-cmd --permanent --zone=public --add-port=2375/tcp #防火墙重启 firewall-cmd --reload #查看开放的端口 firewall-cmd --permanent --zone=public --list-ports
Successful connection:
Successful project packaging:
Recommended learning: "Docker Video Tutorial"
The above is the detailed content of What should I do if docker cannot connect to port 2375?. For more information, please follow other related articles on the PHP Chinese website!