Skip to main content

ContainerExec

Resource ContainerExec in pulumi-portainer.
2 min read

Resource ContainerExec in pulumi-portainer.

Pulumi type: portainer:index/containerExec:ContainerExec.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
commandstringyesShell command to execute inside the target container.
containerExecIdstringno
endpointIdnumberyesIdentifier of the Portainer endpoint hosting the container or Swarm service.
modestringnoDeployment mode: 'standalone' (default) or 'swarm'
serviceNamestringyesName of the container (standalone) or Swarm service in which the command should be executed.
timeoutsContainerExecTimeouts (input)no
userstringnoUser and optional group used to run the command inside the container (defaults to root:root).
waitnumbernoInitial delay in seconds before executing the command.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
commandstringnoShell command to execute inside the target container.
containerExecIdstringno
endpointIdnumbernoIdentifier of the Portainer endpoint hosting the container or Swarm service.
modestringnoDeployment mode: 'standalone' (default) or 'swarm'
outputstringyesStandard output captured from the executed command.
serviceNamestringnoName of the container (standalone) or Swarm service in which the command should be executed.
timeoutsContainerExecTimeouts (output)no
userstringnoUser and optional group used to run the command inside the container (defaults to root:root).
waitnumbernoInitial delay in seconds before executing the command.

ContainerExecTimeouts (input)#

Input object ContainerExecTimeouts. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
createstringno

ContainerExecTimeouts (output)#

Output object ContainerExecTimeouts. Fields below belong to this object.

PropertyTypeAlways presentDescription
createstringno