From 6147ebe31a64317122e68d65c03a7b42197f92cc Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Mon, 13 May 2024 16:48:42 +0200 Subject: [PATCH 1/2] storage: tmpfs-size default value The default maximum size for tmpfs volumes is 50% of RAM Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/storage/tmpfs.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/storage/tmpfs.md b/content/storage/tmpfs.md index ca69addb00..522c751180 100644 --- a/content/storage/tmpfs.md +++ b/content/storage/tmpfs.md @@ -112,10 +112,10 @@ $ docker rm tmptest required. If you need to specify these options, you must use the `--mount` flag, as the `--tmpfs` flag does not support them. -| Option | Description | -|:-------------|:------------------------------------------------------------------------------------------------------| -| `tmpfs-size` | Size of the tmpfs mount in bytes. Unlimited by default. | -| `tmpfs-mode` | File mode of the tmpfs in octal. For instance, `700` or `0770`. Defaults to `1777` or world-writable. | +| Option | Description | +|:-------------|:--------------------------------------------------------------------------------------------------------------------------| +| `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. | The following example sets the `tmpfs-mode` to `1770`, so that it is not world-readable within the container. From c5bd5286e6b9e76b33d9e49f40595a0f8f30cc97 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Mon, 13 May 2024 16:56:42 +0200 Subject: [PATCH 2/2] vale: add tmpfs to vocabulary Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- .github/vale/config/vocabularies/Docker/accept.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/vale/config/vocabularies/Docker/accept.txt b/.github/vale/config/vocabularies/Docker/accept.txt index 914c31b18f..07ec27e1df 100644 --- a/.github/vale/config/vocabularies/Docker/accept.txt +++ b/.github/vale/config/vocabularies/Docker/accept.txt @@ -165,6 +165,7 @@ stdin stdout subnet systemd +tmpfs ufw umask ungated