Managing Containers

Starting a Container

To start a container:

Command:

gs.{sh/bat} container start <host>

Description:

This commands starts a container.

Input Example:

<GS_HOME>/bin/gs container start myHost

Parameters and Options:

Item Name Description
Parameter host Provide the name of the host where the container should be started.
Option —memory:<memory> Define the maximum amount of JVMClosed memory for the new container.
Option —zone=<zone name> Define the zone where the new container should be started.
Option —property=<String=String> Provide additional system properties.

Terminating a Container

To terminate a container:

Command:

xgs.{sh/bat} container kill <container ID>

Description:

This command stops (terminates) the specified container.

Input Example:

<GS_HOME>/bin/gs container kill admin~22200

Parameters and Options:

Item Name Description
Parameter container ID ID of the container to be terminated.
Option zones Specify the zone(s) where the container should be terminated.

Restarting a Container

To restart a container:

Command:

gs.{sh/bat} container restart <container ID>

Description:

This command restarts the specified container.

Input Example:

<GS_HOME>/bin/gs container restart admin~11100

Parameters and Options:

Item Name Description
Parameter container ID ID of the container to be restarted.

Creating a Container

This functionality is only available with the Command Line Interface.

To create a container:

Command:

gs.{sh/bat} container create <container ID>

Description:

This command creates the specified container.

Input Example:

<GS_HOME>/bin/gs container create admin~11100

Parameters and Options:

Item Name Description
Parameter container ID ID of the container to be created.
Option count Number of containers to be created.