You can do the following with containers:
-
Restart (Restart) or stop (Stop) a container. In these cases,
the container will be recreated with the current settings.Note: If you did not save the data to the mounted volumes (see the
Volume Mapping section below), the data will be lost. -
View logs and resource consumption (Details).
-
Change container settings, such as environment variables or volume
mapping (Settings or Details > Settings).In Plesk on CentOS, you can set a memory limit for a container
(Settings > Memory limit). -
Rename a container (Settings > Container name).
-
Recreate a container using the same or another version of the image
(Details > Recreate). -
Create an image based on a container with your custom settings
(Details > Save as Image). -
Take a snapshot of a container (Details > Download a
Snapshot). -
Remove a container (Remove or Details > Remove).
Recreating a Container
Usually, you need to recreate a container when you want to update the
application to a newer version. In fact, you can rebuild a container
using any application version available in the catalog, not only a newer
one.
Custom settings are preserved during recreation. To preserve data used
by the application inside a container, you should specify volume mapping
before you recreate a container. Volume mapping enables you to have
access to directories used inside a container (see Volume
Mapping in container settings).
To recreate a container:
- Go to Docker and click Details below the container you want
to recreate. - Click Recreate in the container settings and specify the image
version, and whether to use default environment variables.