Skip to content

Commit adaa2cd

Browse files
committed
fix: Docker现已支持开设带硬盘大小限制的容器
1 parent 80de374 commit adaa2cd

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

docs/en/guide/docker/docker_build.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ curl -L https://raw.githubusercontent.com/oneclickvirt/docker/main/scripts/onedo
2222

2323
### Example
2424

25-
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)
25+
Running the supported variables are as follows
2626

2727
```
2828
./onedocker.sh name cpu memory password sshport startport endport <independent_ipv6> <system> <disk>
@@ -39,6 +39,12 @@ Currently, the system only supports selecting:
3939

4040
with Debian being the default choice.
4141

42+
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.
43+
44+
```shell
45+
./onedocker.sh test 1 512 123456 25000 34975 35000 N debian 5
46+
```
47+
4248
The following is the information for the created example container:
4349

4450
| Attribute | Value |
@@ -54,10 +60,6 @@ The following is the information for the created example container:
5460
| Whether to bind a separate IPV6 address| N |
5561
| Disk Size | 5G |
5662

57-
```shell
58-
./onedocker.sh test 1 512 123456 25000 34975 35000 N debian 5
59-
```
60-
6163
### Related operations
6264

6365
Deleting the test container

docs/guide/docker/docker_build.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
2828

2929
### 示例
3030

31-
运行支持的变量如下(硬盘大小仅在前面安装时选择了支持限制硬盘大小的,这块才可设置硬盘大小)
31+
运行支持的变量如下
3232

33-
```
33+
```bash
3434
./onedocker.sh name cpu memory password sshport startport endport <independent_ipv6> <system> <disk>
3535
```
3636

@@ -45,6 +45,8 @@ curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt
4545

4646
默认不填则是debian
4747

48+
硬盘大小仅在前面Docker安装时选择了支持限制硬盘大小的选项,这块才可填写数值设置硬盘大小,默认不填时不限制
49+
4850
```shell
4951
./onedocker.sh test 1 512 123456 25000 34975 35000 N debian 5
5052
```

0 commit comments

Comments
 (0)