{"id":45018,"date":"2024-06-28T11:39:39","date_gmt":"2024-06-28T11:39:39","guid":{"rendered":"https:\/\/accuweb.cloud\/resource\/?post_type=faq&#038;p=45018"},"modified":"2026-02-18T12:06:15","modified_gmt":"2026-02-18T12:06:15","slug":"cli-container-volumes","status":"publish","type":"faq","link":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes","title":{"rendered":"CLI Managing Container Volumes"},"content":{"rendered":"<h2 class=\"ack-h2\">Volumes Management Overview<\/h2>\n<p>AccuWeb.Cloud allows for persistent local storage in containers, guaranteeing data integrity and protecting against data loss during container operations. There are two main ways to configure <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/container-layer-volumes\/\" target=\"_blank\" rel=\"noopener\">container volumes<\/a>:<\/p>\n<p><strong>Using the CLI of the platform natively<\/strong><\/p>\n<ul class=\"ack-ul\">\n<li>With Environment topology settings<\/li>\n<li>Using Direct CLI methods<\/li>\n<\/ul>\n<h2 class=\"ack-h2\">1. Setting Volumes Using Environment Topology<\/h2>\n<p>To define container volumes when <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/cli-environment-creation\/\" target=\"_blank\" rel=\"noopener\">creating<\/a> or <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/cli-server-scaling\/\" target=\"_blank\" rel=\"noopener\">changing<\/a> the topology of an environment, use the following <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/create-environment-api\" target=\"_blank\" rel=\"noopener\">methods<\/a>:<\/p>\n<ul class=\"ack-ul\">\n<li><strong>Volumes<\/strong>: Set a list of local volumes.<\/li>\n<li><strong>VolumeMounts<\/strong>: Configure <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/how-to-create-a-mount-point\" target=\"_blank\" rel=\"noopener\">mount points<\/a>.<\/li>\n<li><strong>VolumesFrom<\/strong>: Import existing volumes from another node.<\/li>\n<\/ul>\n<p>These methods are specified in the docker section. Here\u2019s how you can use them:<\/p>\n<div class=\"article-space ack-extra-image-space\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t<\/div>\n<div class=\"article-space\"><\/div>\n<h3 class=\"ack-h3\">Volumes<\/h3>\n<p>Allows you to define multiple local volumes within a container. The syntax is as follows:<\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/createenvironment \\\r\n--env '{\"shortdomain\":\"{envName}\"}' \\\r\n--nodes '[{\r\n\"nodeGroup\": \"{nodeGroup}\",\r\n\"nodeType\": \"{nodeType}\",\r\n\"fixedCloudlets\": {number of fixedCloudlets},\r\n\"flexibleCloudlets\": {number of flexibleCloudlets},\r\n\"docker\": {\r\n\"image\": \"{application node image}\",\r\n\"volumes\": [\"\/path_to_volume1\", \"\/path_to_volume2\"]\r\n}\r\n}]'\r\n<\/code><\/pre>\n<p><strong>Example Command:<\/strong><\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/createenvironment \\\r\n--env '{\"shortdomain\":\"cli-volumes\"}' \\\r\n--nodes '[{\r\n\"nodeGroup\": \"cp\",\r\n\"nodeType\": \"apache\",\r\n\"fixedCloudlets\": 4,\r\n\"flexibleCloudlets\": 8,\r\n\"docker\": {\r\n\"image\": \"jelastic\/apachephp\",\r\n\"volumes\": [\"\/my_volume_1\", \"\/my_volume_2\"]\r\n}\r\n}]'\r\n<\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume01.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45019 size-full\" title=\"Volumes\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume01.png\" alt=\"Volumes\" width=\"1025\" height=\"334\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume01.png 1025w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume01-300x98.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume01-768x250.png 768w\" sizes=\"(max-width: 1025px) 100vw, 1025px\" \/><\/a><\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<ul class=\"ack-ul\">\n<li><strong>envName<\/strong>: The name of the environment where the container(s) is present.<\/li>\n<li><strong>nodeGroup<\/strong>: Identifier of the <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/create-environment-api\" target=\"_blank\" rel=\"noopener\">environment layer<\/a>.<\/li>\n<li><strong>nodeId<\/strong>: ID of the specific container.<\/li>\n<li><strong>fixedCloudlets:<\/strong>\u00a0fixed cloudlets number.<\/li>\n<li><strong>flexibleCloudlets<\/strong>: flexible cloudlets number.<\/li>\n<li><strong>image<\/strong>: name and tag of Docker image.<\/li>\n<li><strong>volumes<\/strong>: Docker node volumes (here name of the folder(s) you want to create).<\/li>\n<\/ul>\n<div class=\"article-space ack-extra-image-space\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t<\/div>\n<div class=\"article-space\"><\/div>\n<h3 class=\"ack-h3\">VolumeMounts<\/h3>\n<p>Allows you to configure specific mount points. The syntax is:<\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/changetopology \\\r\n--envName \"{envName}\" \\\r\n--env '{\"shortdomain\":\"{envName}\"}' \\\r\n--nodes '[{\r\n\"nodeGroup\": \"{nodeGroup}\",\r\n\"nodeType\": \"{nodeType}\",\r\n\"fixedCloudlets\": {number of fixedCloudlets},\r\n\"flexibleCloudlets\": {number of flexibleCloudlets},\r\n\"docker\": {\r\n\"image\": \"{application node image}\",\r\n\"volumeMounts\": {\r\n\"{\/local_path}\": {\r\n\"sourcePath\": \"{\/remote_path}\",\r\n\"sourceNodeId\": \"{nodeId}\"\r\n}\r\n}\r\n}\r\n}]'\r\n<\/code><\/pre>\n<p><strong>Example Command:<\/strong><\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/changetopology \\\r\n--envName cli-volumes \\\r\n--env '{\"shortdomain\":\"cli-volumes\"}' \\\r\n--nodes '[{\r\n\"nodeGroup\": \"cp\",\r\n\"nodeType\": \"docker\",\r\n\"fixedCloudlets\": 4,\r\n\"flexibleCloudlets\": 8,\r\n\"docker\": {\r\n\"image\": \"jelastic\/apachephp\",\r\n\"volumeMounts\": {\r\n\"\/var\/www\/webroot\": {\r\n\"sourcePath\": \"\/var\/www\/webroot\",\r\n\"sourceNodeId\": \"5333\"\r\n}\r\n}\r\n}\r\n}]'\r\n<\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume02.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45020 size-full\" title=\"VolumeMounts \" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume02.png\" alt=\"VolumeMounts \" width=\"1106\" height=\"253\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume02.png 1106w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume02-300x69.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume02-1024x234.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume02-768x176.png 768w\" sizes=\"(max-width: 1106px) 100vw, 1106px\" \/><\/a><\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<ul class=\"ack-ul\">\n<li><strong>envName:<\/strong> The name of the environment where the container(s) is present.<\/li>\n<li><strong>nodeGroup:<\/strong> Identifier of the <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/create-environment-api\" target=\"_blank\" rel=\"noopener\">environment layer<\/a>. (The list of available stacks are <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/quick-reference\/common-variables\/\" target=\"_blank\" rel=\"noopener\">here<\/a>)<\/li>\n<li><strong>nodeType:<\/strong> the defined node type. (The list of available stacks are <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/quick-reference\/common-variables\/\" target=\"_blank\" rel=\"noopener\">here<\/a>)<\/li>\n<li><strong>fixedCloudlets:<\/strong> fixed cloudlets number.<\/li>\n<li><strong>flexibleCloudlets:<\/strong> flexible cloudlets number.<\/li>\n<li><strong>image:<\/strong> name and tag of Docker image.<\/li>\n<li><strong>local_path:<\/strong> Path of the local folder you want to mount with another environment.<\/li>\n<li><strong>sourcePath:<\/strong> Path from target environment where you want to mount the local folder.<\/li>\n<li><strong>sourceNodeId:<\/strong> Node ID of the target environment where you want to mount the local folder.<\/li>\n<\/ul>\n<div class=\"article-space ack-extra-image-space\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t<\/div>\n<div class=\"article-space\"><\/div>\n<h3 class=\"ack-h3\">VolumesFrom<\/h3>\n<p>Allows you to mount all existing volumes from one node to another. The syntax is:<\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/changetopology \\\r\n--envName \"{envName}\" \\\r\n--env '{\"shortdomain\":\"{envName}\"}' \\\r\n--nodes '[{\r\n\"nodeGroup\": \"{nodeGroup}\",\r\n\"nodeType\": \"{nodeType}\",\r\n\"fixedCloudlets\": {number of fixedCloudlets},\r\n\"flexibleCloudlets\": {number of flexibleCloudlets},\r\n\"docker\": {\r\n\"image\": \"{application node image}\",\r\n\"volumesFrom\": [{\r\n\"sourceNodeId\": \"{nodeId}\",\r\n\"readOnly\": false,\r\n\"volumes\": [\"\/local_volume\"]\r\n}]\r\n}\r\n}]'\r\n<\/code><\/pre>\n<p><strong>Example Command:<\/strong><\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/changetopology \\\r\n--envName cli-volumes \\\r\n--env '{\"shortdomain\":\"cli-volumes\"}' \\\r\n--nodes '[{\r\n\"nodeGroup\": \"cp\",\r\n\"nodeType\": \"docker\",\r\n\"fixedCloudlets\": 4,\r\n\"flexibleCloudlets\": 8,\r\n\"docker\": {\r\n\"image\": \"jelastic\/apachephp\",\r\n\"volumesFrom\": [{\r\n\"sourceNodeId\": \"5333\",\r\n\"readOnly\": false,\r\n\"volumes\": [\"\/my_volume_1\"]\r\n}]\r\n}\r\n}]'\r\n<\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume03-1.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45022 size-full\" title=\"VolumesFrom\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume03-1.png\" alt=\"VolumesFrom\" width=\"1105\" height=\"261\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume03-1.png 1105w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume03-1-300x71.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume03-1-1024x242.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume03-1-768x181.png 768w\" sizes=\"(max-width: 1105px) 100vw, 1105px\" \/><\/a><\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<ul class=\"ack-ul\">\n<li><strong>envName<\/strong>: The name of the environment where the container(s) is present.<\/li>\n<li><strong>nodeGroup<\/strong>: Identifier of the environment layer. (The list of available stacks are <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/quick-reference\/common-variables\/\" target=\"_blank\" rel=\"noopener\">here<\/a>)<\/li>\n<li><strong>nodeType<\/strong>: the defined node type. (The list of available stacks are <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/api\/docs\/8-6-1\/quick-reference\/common-variables\/\" target=\"_blank\" rel=\"noopener\">here<\/a>)<\/li>\n<li><strong>fixedCloudlets<\/strong>: fixed cloudlets number.<\/li>\n<li><strong>flexibleCloudlets<\/strong>: flexible cloudlets number.<\/li>\n<li><strong>image<\/strong>: name and tag of Docker image.<\/li>\n<li><strong>sourceNodeId<\/strong>: Node ID of the target environment where you want to mount the local folder.<\/li>\n<li><strong>volumes<\/strong>: Docker node volumes (here name of the folder(s) you want to create).<\/li>\n<\/ul>\n<h2 class=\"ack-h2\">2. Direct Volumes Management<\/h2>\n<p>The platform provides several CLI methods specifically for managing volumes without affecting the rest of the environment topology.<\/p>\n<h3 class=\"ack-h3\">AddContainerVolume<\/h3>\n<p>Adds a new volume to an existing environment<\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/addcontainervolume \\\r\n--envName {envName} \\\r\n--nodeId {nodeId} \\\r\n--path {path}\r\n<\/code><\/pre>\n<p><strong>Example Command:<\/strong><\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/addcontainervolume \\\r\n--envName cli-volumes \\\r\n--nodeId 6756 \\\r\n--path \/my_volume\r\n<\/code><\/pre>\n<h3 class=\"ack-h3\"><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45025 size-full\" title=\"Add Container Volume\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume04.png\" alt=\"Add Container Volume\" width=\"1120\" height=\"168\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume04.png 1120w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume04-300x45.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume04-1024x154.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume04-768x115.png 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" \/><\/a><\/h3>\n<h3 class=\"ack-h3\">RemoveContainerVolume<\/h3>\n<p>Removes a volume from an existing environment<\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/removecontainervolume \\\r\n--envName {envName} \\\r\n--nodeId {nodeId} \\\r\n--path {path}\r\n<\/code><\/pre>\n<p><strong>Example Command:<\/strong><\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/removecontainervolume \\\r\n--envName cli-volumes \\\r\n--nodeId 6756 \\\r\n--path \/my_volume\r\n<\/code><\/pre>\n<h3 class=\"ack-h3\"><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45026 size-full\" title=\"Remove Container Volume\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume05.png\" alt=\"Remove Container Volume\" width=\"1119\" height=\"168\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume05.png 1119w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume05-300x45.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume05-1024x154.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume05-768x115.png 768w\" sizes=\"(max-width: 1119px) 100vw, 1119px\" \/><\/a><\/h3>\n<h3 class=\"ack-h3\">AddContainerVolumeByGroup<\/h3>\n<p>Adds volumes to all nodes in an environment layer:<\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/addcontainervolumebygroup \\\r\n--envName {envName} \\\r\n--nodeGroup {nodeGroup} \\\r\n--path {path}\r\n<\/code><\/pre>\n<p><strong>Example Command:<\/strong><\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/addcontainervolumebygroup \\\r\n--envName cli-volumes \\\r\n--nodeGroup cp \\\r\n--path \/my_group_volume\r\n<\/code><\/pre>\n<h3 class=\"ack-h3\"><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45027 size-full\" title=\"Add Container Volume by Group\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume06.png\" alt=\"Add Container Volume by Group\" width=\"1120\" height=\"111\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume06.png 1120w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume06-300x30.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume06-1024x101.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume06-768x76.png 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" \/><\/a><\/h3>\n<h3 class=\"ack-h3\">RemoveContainerVolumeByGroup<\/h3>\n<p>Removes volumes from all nodes in an environment layer:<\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/removecontainervolumebygroup \\\r\n--envName {envName} \\\r\n--nodeGroup {nodeGroup} \\\r\n--path {path}\r\n<\/code><\/pre>\n<p><strong>Example Command:<\/strong><\/p>\n<pre><code class=\"language-javascript\">\r\n~\/jelastic\/environment\/control\/removecontainervolumebygroup \\\r\n--envName cli-volumes \\\r\n--nodeGroup cp \\\r\n--path \/my_group_volume\r\n<\/code><\/pre>\n<h2 class=\"ack-h2\"><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-45028 size-full\" title=\"Remove Container Volume by Group\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume07.png\" alt=\"Remove Container Volume by Group\" width=\"1095\" height=\"105\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume07.png 1095w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume07-300x29.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume07-1024x98.png 1024w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/06\/managing-contAINER-volume07-768x74.png 768w\" sizes=\"(max-width: 1095px) 100vw, 1095px\" \/><\/a><\/h2>\n<h2 class=\"ack-h2\">Conclusion<\/h2>\n<p>Using <strong>these CLI commands<\/strong>, you can effectively handle container volumes on the AccuWeb.Cloud platform and preserve data state and consistency throughout your containerized applications.<\/p>\n<p>If you need to add additional <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/cli-mount-points\/\" target=\"_blank\" rel=\"noopener\">Mount Points<\/a> alongside volumes, please refer to the linked guide for detailed instructions.<\/p>\n<div class=\"cta-btn-top-space ack-extra-image-space\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t<\/div>\n<div class=\"cta-btn-mob-space\"><\/div>\n","protected":false},"author":1,"featured_media":52879,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","class_list":["post-45018","faq","type-faq","status-publish","has-post-thumbnail","hentry","faq_topics-api-cli","faq_topics-container-volumes","faq_topics-development-tools","faq_topics-kb","faq_topics-platform-cli","faq_topics-product-documentation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.10 (Yoast SEO v24.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Container volumes management | AccuWeb.Cloud Guide<\/title>\n<meta name=\"description\" content=\"Discover how to set container volumes using the command line interface methods. Follow our guide to learn two CLI methods.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CLI Managing Container Volumes\" \/>\n<meta property=\"og:description\" content=\"Discover how to set container volumes using the command line interface methods. Follow our guide to learn two CLI methods.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes\" \/>\n<meta property=\"og:site_name\" content=\"AccuWeb Cloud\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-18T12:06:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#article\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes\"},\"author\":{\"name\":\"Jilesh Patadiya\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\"},\"headline\":\"CLI Managing Container Volumes\",\"datePublished\":\"2024-06-28T11:39:39+00:00\",\"dateModified\":\"2026-02-18T12:06:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes\"},\"wordCount\":505,\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes\",\"url\":\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes\",\"name\":\"Container volumes management | AccuWeb.Cloud Guide\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#primaryimage\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"datePublished\":\"2024-06-28T11:39:39+00:00\",\"dateModified\":\"2026-02-18T12:06:15+00:00\",\"description\":\"Discover how to set container volumes using the command line interface methods. Follow our guide to learn two CLI methods.\",\"breadcrumb\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#primaryimage\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/accuweb.cloud\/resource\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CLI Managing Container Volumes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"name\":\"AccuWeb Cloud\",\"description\":\"Cutting Edge Cloud Computing\",\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\",\"name\":\"AccuWeb.Cloud\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"width\":156,\"height\":87,\"caption\":\"AccuWeb.Cloud\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\",\"name\":\"Jilesh Patadiya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"caption\":\"Jilesh Patadiya\"},\"description\":\"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.\",\"sameAs\":[\"https:\/\/accuweb.cloud\/resource\",\"https:\/\/www.facebook.com\/accuwebhosting\",\"https:\/\/www.instagram.com\/accuwebhosting\/\",\"https:\/\/www.linkedin.com\/company\/accuwebhosting\/\",\"https:\/\/x.com\/accuwebhosting\",\"https:\/\/www.youtube.com\/c\/Accuwebhosting\"],\"url\":\"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Container volumes management | AccuWeb.Cloud Guide","description":"Discover how to set container volumes using the command line interface methods. Follow our guide to learn two CLI methods.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes","og_locale":"en_US","og_type":"article","og_title":"CLI Managing Container Volumes","og_description":"Discover how to set container volumes using the command line interface methods. Follow our guide to learn two CLI methods.","og_url":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes","og_site_name":"AccuWeb Cloud","article_modified_time":"2026-02-18T12:06:15+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#article","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes"},"author":{"name":"Jilesh Patadiya","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58"},"headline":"CLI Managing Container Volumes","datePublished":"2024-06-28T11:39:39+00:00","dateModified":"2026-02-18T12:06:15+00:00","mainEntityOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes"},"wordCount":505,"publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","inLanguage":"en-US"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes","url":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes","name":"Container volumes management | AccuWeb.Cloud Guide","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/#website"},"primaryImageOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#primaryimage"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","datePublished":"2024-06-28T11:39:39+00:00","dateModified":"2026-02-18T12:06:15+00:00","description":"Discover how to set container volumes using the command line interface methods. Follow our guide to learn two CLI methods.","breadcrumb":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#primaryimage","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/accuweb.cloud\/resource\/articles\/cli-container-volumes#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/accuweb.cloud\/resource\/"},{"@type":"ListItem","position":2,"name":"CLI Managing Container Volumes"}]},{"@type":"WebSite","@id":"https:\/\/accuweb.cloud\/resource\/#website","url":"https:\/\/accuweb.cloud\/resource\/","name":"AccuWeb Cloud","description":"Cutting Edge Cloud Computing","publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/accuweb.cloud\/resource\/#organization","name":"AccuWeb.Cloud","url":"https:\/\/accuweb.cloud\/resource\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","width":156,"height":87,"caption":"AccuWeb.Cloud"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58","name":"Jilesh Patadiya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","caption":"Jilesh Patadiya"},"description":"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.","sameAs":["https:\/\/accuweb.cloud\/resource","https:\/\/www.facebook.com\/accuwebhosting","https:\/\/www.instagram.com\/accuwebhosting\/","https:\/\/www.linkedin.com\/company\/accuwebhosting\/","https:\/\/x.com\/accuwebhosting","https:\/\/www.youtube.com\/c\/Accuwebhosting"],"url":"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin"}]}},"_links":{"self":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/45018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/comments?post=45018"}],"version-history":[{"count":11,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/45018\/revisions"}],"predecessor-version":[{"id":53087,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/45018\/revisions\/53087"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media\/52879"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media?parent=45018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}