fix: Docker现已支持开设带硬盘大小限制的容器

This commit is contained in:
spiritlhl
2025-08-24 12:16:55 +00:00
parent 80de37484f
commit adaa2cd5a6
2 changed files with 11 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ curl -L https://raw.githubusercontent.com/oneclickvirt/docker/main/scripts/onedo
### Example
Running the supported variables are as follows (hard disk size can be set in this block only if the support for limiting the hard disk size was selected during the previous installation)
Running the supported variables are as follows
```
./onedocker.sh name cpu memory password sshport startport endport <independent_ipv6> <system> <disk>
@@ -39,6 +39,12 @@ Currently, the system only supports selecting:
with Debian being the default choice.
The hard disk size can only be set by filling in the value if you have selected the option to support limiting the hard disk size during the previous Docker installation, it is not limited when not filled in by default.
```shell
./onedocker.sh test 1 512 123456 25000 34975 35000 N debian 5
```
The following is the information for the created example container:
| Attribute | Value |
@@ -54,10 +60,6 @@ The following is the information for the created example container:
| Whether to bind a separate IPV6 address| N |
| Disk Size | 5G |
```shell
./onedocker.sh test 1 512 123456 25000 34975 35000 N debian 5
```
### Related operations
Deleting the test container

View File

@@ -28,9 +28,9 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
### 示例
运行支持的变量如下(硬盘大小仅在前面安装时选择了支持限制硬盘大小的,这块才可设置硬盘大小)
运行支持的变量如下
```
```bash
./onedocker.sh name cpu memory password sshport startport endport <independent_ipv6> <system> <disk>
```
@@ -45,6 +45,8 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
默认不填则是debian
硬盘大小仅在前面Docker安装时选择了支持限制硬盘大小的选项这块才可填写数值设置硬盘大小默认不填时不限制
```shell
./onedocker.sh test 1 512 123456 25000 34975 35000 N debian 5
```