Deploys a container with information specified in the Project Container Configuration. When a container is deployed via this operation, any existing container of the same name will be removed and replaced with the newly deployed container. If the deploy should fail for any reason, the old container is restored to the previous state.
If the Docker REST API is enabled on your docker installation, you can configure FlexDeploy to have access to start/stop the container as well as view logs.
|Property Name||Property Code||Required||Description|
|Docker Server Address|
The IP address of the Docker server. Required if Docker Unix Socker is not set.
|Docker Port||FDDKR_DOCKER_PORT||No||The port the Docker service is listening on. Required if Docker Unix Socker is not set.|
|Docker Unix Socket||FDDKR_UNIX_SOCKET||No||The socket the Docker daemon listens on. Required if Docker Server and Docker Port are not set.|
This operation uses separate Project Configuration for the properties.
|Input Name||Input Code||Required||Description|
|Container Name||FDDKR_INP_CONTAINER_NAME||Yes||The name of the container to be created and run.|
|Docker Image||FDDKR_INP_IMAGE_NAME||Yes||The Docker image and tag to use when creating the container.|
|Volumes||FDDKR_INP_VOLUMES||No||A comma separated list of volumes to attach to the container. Volume entries should be host:container.|
|Exposed Ports||FDDKR_INP_EXPOSED_PORTS||No||A comma separated list of ports to expose on the container and host. (e.g. 8080:28080,22:20022,[ContainerPort]:[HostPort])|
|Additional Params||FDDKR_INP_ADDITIONAL_PARAMS||No||Add any additional parameters not listed above, which will be concatenated to the run command.|
This operation doesn’t consume or produce any artifacts.
This operation delegates the selection to the workflow developer to determine.
This operations delegates the execution to the workflow developer to decide.
This operation is automatically added to your deploy workflow as the first step if Run Container is marked as true in your Project Configuration.
If you need to perform workflow steps prior to running the project container, you can add the operation manually at any location in your workflow and the automatically initialize step above will not occur.