yet-another-docker-plugin
yet-another-docker-plugin copied to clipboard
Two Network Modes in one Docker Template
How can I have multiple "--net" parameters provided on startup of a container with this plugin for a single template?
Background:
I have a situation where the slave container must run in both the default network (bridge) and a custom network of some containers.
I already tried using a comma as separator (e.g. bridge,special_net), but that breaks things.
With the docker CLI, it works fine with
docker run -u jenkins --rm -ti --net bridge --net special_net image:latest /bin/bash