[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Setting container network in Docker universe

On 11/14/2017 09:56 AM, Koschmieder, Lukas wrote:
Dear Condor users,

Is it possible (for either users or administrators) to change the container network in the Docker universe? Or in other words, how do you use the "--network" Docker option in HTCondor?

There is no easy way to do this today.  I'm curious what kind of network you'd like to set up for your containers.

It is possible to do this for all running containers, with a docker wrapper scripts.  If the administrator sets the DOCKER config variable to point to some script, and that script checks to see if the first argument is docker run or docker create, the script can exec the real docker binary, and add in the --network option (or any other non supported option).