dockerDeployProjectContainer

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.

Container Status

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.


Environment/Instance Properties

Property NameProperty CodeRequiredDescription
Docker Server Address

FDDKR_DOCKER_SERVER

No

The IP address of the Docker server.  Required if Docker Unix Socker is not set.

Docker PortFDDKR_DOCKER_PORTNoThe port the Docker service is listening on.  Required if Docker Unix Socker is not set.
Docker Unix SocketFDDKR_UNIX_SOCKETNoThe socket the Docker daemon listens on. Required if Docker Server and Docker Port are not set.

Project Properties

This operation uses separate Project Configuration for the properties.

Inputs

Input NameInput CodeRequiredDescription
Container NameFDDKR_INP_CONTAINER_NAMEYesThe name of the container to be created and run.
Docker ImageFDDKR_INP_IMAGE_NAMEYesThe Docker image and tag to use when creating the container.
VolumesFDDKR_INP_VOLUMESNoA comma separated list of volumes to attach to the container. Volume entries should be host:container.
Exposed PortsFDDKR_INP_EXPOSED_PORTSNoA comma separated list of ports to expose on the container and host. (e.g. 8080:28080,22:20022,[ContainerPort]:[HostPort])
Additional ParamsFDDKR_INP_ADDITIONAL_PARAMSNoAdd any additional parameters not listed above, which will be concatenated to the run command.

Artifacts

This operation doesn’t consume or produce any artifacts.

Endpoint Selection

This operation delegates the selection to the workflow developer to determine.

Endpoint Execution

This operations delegates the execution to the workflow developer to decide.

Special Considerations

Project Configuration

This operation is automatically added to your deploy workflow as the first step if Run Container is marked as true in your Project Configuration.

Workflow Position

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.