Contenido principal

restartContainer

R2026b

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

Target computer for the deployed application, specified as a linuxTarget object. The object provides access to methods that manipulate the target computer properties.

Example: tg

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