Main Content

restartContainer

Restart or recreate docker container

Since R2024a

Description

restartContainer(tg,recreateContainer) restart or recreate the docker container on target machine from host machine.

example

Examples

collapse all

Get the target on which the docker container has to be restarted.

tg = linuxTarget("<Target_Name>");

Restart the docker container on target computer from host machine.

tg.restartContainer;

Recreate the docker container on target computer from host machine.

tg.restartContainer(recreateContainer=true);

Input Arguments

collapse all

Object represents a target computer. Use the object to establish the connection with Linux target, to deploy the applications on Linux target, and perform several other actions.

Example: myTargetHandle

Set the recreateContainer to true to recreate the docker container on target computer from host machine. Set the recreateContainer to false to restart the docker container.

Example: recreateContainer=true

Version History

Introduced in R2024a