What should I do if docker cannot connect to port 2375?

藏色散人
Release: 2021-12-08 16:35:18
Original
5270 people have browsed it

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.

What should I do if docker cannot connect to port 2375?

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.
What should I do if docker cannot connect to port 2375?
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
Copy after login

What should I do if docker cannot connect to port 2375?
Successful connection:
What should I do if docker cannot connect to port 2375?
Successful project packaging:
What should I do if docker cannot connect to port 2375?

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template