I run a jenkins container but I'd like to Configuring dynamically provisioned Docker agents and I installed docker plugin on jenkins. However I can't reach docker inside the container even if I changed /lib/systemd/system/docker.service turning:
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
into
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375
and I restart teh daemon with:
sudo systemctl daemon-reload
sudo service docker restart.
After that I went to jenkins configuration and created docker cloud.
the fact is that when I test tcp://172.17.0.1:2375 in docker cloud details it doesn't work. I test in the container ping 172.17.0.1 and the container reaches that host.
Did I miss something?