yet-another-docker-plugin icon indicating copy to clipboard operation
yet-another-docker-plugin copied to clipboard

Two Network Modes in one Docker Template

Open eaglerainbow opened this issue 6 years ago • 0 comments

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

eaglerainbow avatar Jul 06 '19 08:07 eaglerainbow