Class DockerEnvUtils


  • public class DockerEnvUtils
    extends Object
    • Method Detail

      • addEnvToCmd

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public static void addEnvToCmd​(String envName,
                                       String envValue,
                                       com.github.dockerjava.api.command.CreateContainerCmd cmd)
        Adds (or updates) an environment variable to the list of environment variables being passed into a create-container command.
        Parameters:
        envName - The name of the environment variable to set.
        envValue - The value to set it to.
        cmd - The CreateContainerCmd whose environment settings are to be adjusted.