webstorm configures the docker service connected to the Linux environment

1. In Linux environment, configure the docker service port

 1) Confirm whether Docker ’s default port [port 2375] has been opened and run the command [netstat -nlpt]

 

As shown in the picture above, there is no 2375 port, so you need to configure port 2375.

2) Enter the command [systemctl status docker.service] to query the docker service

[root@VM-16-5-centos system]# systemctl status docker.service

  You can see the path of docker.service:/usr/lib/systemd/system/docker.service

 Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)

cd /usr/lib/systemd/

3) Edit the docker.service file,

[root@VM-16-5-centos system]# vim docker.service

Add the following content after the ExecStart line

-H tcp://0.0.0.0:2375

 

2. In Linux environment, restart the docker service
1) Reload the service information.

[root@VM-16-5-centos system]# systemctl daemon-reload
2) Restart the docker service

[root@VM-16-5-centos system]# systemctl restart docker.service
3) Check whether port 2375 is open

[root@VM-16-5-centos system]# netstat -nlpt

 

in development environment

 

Guess you like

Origin blog.csdn.net/m0_52775179/article/details/131322921