84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
1.docker安装在远程服务器,jenkins安装在本地机,从jenkins中下载了一些docker plugin,但是在配置远程docker URL的时候失败,测试的时候无法连接上去。2.
小伙看你根骨奇佳,潜力无限,来学PHP伐。
Docker URL should contain the port, for example:
http://114.215.138.254:2375
Here 2375 is the tcp port that docker monitors, which is not open by default. You need to set it up like this (taking ubuntu as an example)
1. Modify docker configuration file
sudo vim /etc/default/docker
Add the following:
DOCKER_OPTS="-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock"
2. Restart docker
sudo restart docker
or
sudo service docker restart
2. View docker port
sudo netstat -ltnp | grep docker tcp6 0 0 :::2375 :::* LISTEN 6112/docker
Warning: It is very unsafe to open the tcp port that docker listens to, and you have exposed the IP address of the host, please set up a firewall!
Docker URL should contain the port, for example:
Here 2375 is the tcp port that docker monitors, which is not open by default. You need to set it up like this (taking ubuntu as an example)
1. Modify docker configuration file
Add the following:
2. Restart docker
or
2. View docker port
Warning: It is very unsafe to open the tcp port that docker listens to, and you have exposed the IP address of the host, please set up a firewall!