Is there a way to assign network and binding ports to a docker agent in Jenkins?
Check first if the network is visible through inspection, instead of just docker ps
.
See "How to find the network my container is in?"
docker inspect <lyContainer> -f "{{json .NetworkSettings.Networks }}"
Or you could filter docker ps by network, again, to check if the containers were assigned to the expected network.
You can also check your network stack through a Jenkins step like ip addr show
to see if a new network interface was created.