Run Script in Docker Container
With this plugin, you can use a command to run a script in a running Docker container, without logging in to the container.
Configuration
When you add this plugin step to a chain, modify the following configuration fields:
Field | Description |
---|---|
Title | Enter a name for the plugin step. |
Root context directory for script | (Optional) Enter the root context directory, which normally contains the dockerfile for the image. |
Docker image name | Enter the name of the Docker image where to run the script. |
Path to mount workspace | (Optional) Enter the path within the container where to mount the workspace. |
Type of script | Select to use either inline command or file path. |
Script language |
Select a script language:
|
File path | If you are using a file path, enter the path to the file that contains the command. Use single quotes to escape spaces in the path name. |
Command line | If you are using inline command, enter the command you want to run. |
Advanced options |
(Optional) Specify additional Docker options:
|
Automatically remove container | Keep this option selected to automatically remove Docker container. |
Control options |
(Optional) Expand Control options and define the following settings:
|
Output variables | (Optional) Enter the variables to be passed to other steps down the chain. For details, see Publish output variables. |
See also: