由于在使用caliper时,需要用到Docker的监听端口,所以此步骤如下:
1、修改/usr/lib/systemd/system/docker.service,在[service]的ExecStart ,添加 -H tcp://0.0.0.0:2375
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H fd:// --containerd=/run/containerd/containerd.sock
2、刷新配置文件,重启docker
systemctl daemon-reload systemctl restart docker
3、添加防火墙2375/tcp ,并重载防火墙
firewall-cmd --zone=public --add-port=2375/tcp --permanent firewall-cmd --reload
4、查看系统网络端口2375是否被docker所监听
netstat -tulp
如果此时docker启动失败,报错信息出现 : iptables: No chain/target/match by that name
则重启docker
service docker restart 或 systemctl restart docker
标签:--,0.0,端口,tcp,2375,docker From: https://www.cnblogs.com/qianxiaoPro/p/16929661.html