mirror of https://github.com/docker/docs.git
Merge pull request #20027 from dvdksn/tmpfs-size
storage: tmpfs maximum size
This commit is contained in:
commit
fe54659e4f
|
|
@ -165,6 +165,7 @@ stdin
|
||||||
stdout
|
stdout
|
||||||
subnet
|
subnet
|
||||||
systemd
|
systemd
|
||||||
|
tmpfs
|
||||||
ufw
|
ufw
|
||||||
umask
|
umask
|
||||||
ungated
|
ungated
|
||||||
|
|
|
||||||
|
|
@ -112,10 +112,10 @@ $ docker rm tmptest
|
||||||
required. If you need to specify these options, you must use the `--mount` flag,
|
required. If you need to specify these options, you must use the `--mount` flag,
|
||||||
as the `--tmpfs` flag does not support them.
|
as the `--tmpfs` flag does not support them.
|
||||||
|
|
||||||
| Option | Description |
|
| Option | Description |
|
||||||
|:-------------|:------------------------------------------------------------------------------------------------------|
|
|:-------------|:--------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `tmpfs-size` | Size of the tmpfs mount in bytes. Unlimited by default. |
|
| `tmpfs-size` | Size of the tmpfs mount in bytes. If unset, the default maximum size of a tmpfs volume is 50% of the host's total RAM. |
|
||||||
| `tmpfs-mode` | File mode of the tmpfs in octal. For instance, `700` or `0770`. Defaults to `1777` or world-writable. |
|
| `tmpfs-mode` | File mode of the tmpfs in octal. For instance, `700` or `0770`. Defaults to `1777` or world-writable. |
|
||||||
|
|
||||||
The following example sets the `tmpfs-mode` to `1770`, so that it is not
|
The following example sets the `tmpfs-mode` to `1770`, so that it is not
|
||||||
world-readable within the container.
|
world-readable within the container.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue