From fd7cad81ff09e9e053cc3d9cf418cf6027c4845d Mon Sep 17 00:00:00 2001 From: WeeskyBDW Date: Thu, 13 Feb 2025 16:54:13 +0100 Subject: [PATCH 1/2] feat: add tip about swap enabled by default on linux kernel v6.1 and newest this is just a tip as danny6167 pointed, not all distribution use a 6.1 or newest kernel --- daemon/0.6/installing.md | 3 +++ wings/1.0/installing.md | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/daemon/0.6/installing.md b/daemon/0.6/installing.md index 243fe9855..baea583e5 100644 --- a/daemon/0.6/installing.md +++ b/daemon/0.6/installing.md @@ -93,6 +93,9 @@ systemctl enable docker ``` #### Enabling Swap +::: tip Recent Linux kernel +Since the version 6.1 of the linux kernel, swap is enabled by default. If you are running a kernel version 6.1 or newer, you can skip this step. To check your kernel version, run `uname -r`. +::: On most systems, docker will be unable to setup swap space, you can check if this is the case by running `docker info`. If it outputs `WARNING: No swap limit support` near the bottom, this is the case. Enabling swap is completely optional, but we recommended doing it if you will be hosting for others, and to prevent OOM errors. diff --git a/wings/1.0/installing.md b/wings/1.0/installing.md index db65b51e7..d87735589 100644 --- a/wings/1.0/installing.md +++ b/wings/1.0/installing.md @@ -75,7 +75,9 @@ sudo systemctl enable --now docker ``` #### Enabling Swap - +::: tip Recent Linux kernel +Since the version 6.1 of the linux kernel, swap is enabled by default. If you are running a kernel version 6.1 or newer, you can skip this step. To check your kernel version, run `uname -r`. +::: On most systems, Docker will be unable to setup swap space by default. You can confirm this by running `docker info` and looking for the output of `WARNING: No swap limit support` near the bottom. Enabling swap is entirely optional, but we recommended doing it if you will be hosting for others and to prevent OOM errors. From 733a1d6c6e408f34fdee68355784363c018209b7 Mon Sep 17 00:00:00 2001 From: WeeskyBDW Date: Mon, 17 Feb 2025 23:07:37 +0100 Subject: [PATCH 2/2] fix: revert daemon 0.6 doc change and add space to previous tip --- daemon/0.6/installing.md | 3 --- wings/1.0/installing.md | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/daemon/0.6/installing.md b/daemon/0.6/installing.md index baea583e5..243fe9855 100644 --- a/daemon/0.6/installing.md +++ b/daemon/0.6/installing.md @@ -93,9 +93,6 @@ systemctl enable docker ``` #### Enabling Swap -::: tip Recent Linux kernel -Since the version 6.1 of the linux kernel, swap is enabled by default. If you are running a kernel version 6.1 or newer, you can skip this step. To check your kernel version, run `uname -r`. -::: On most systems, docker will be unable to setup swap space, you can check if this is the case by running `docker info`. If it outputs `WARNING: No swap limit support` near the bottom, this is the case. Enabling swap is completely optional, but we recommended doing it if you will be hosting for others, and to prevent OOM errors. diff --git a/wings/1.0/installing.md b/wings/1.0/installing.md index d87735589..28f63bd7e 100644 --- a/wings/1.0/installing.md +++ b/wings/1.0/installing.md @@ -78,6 +78,7 @@ sudo systemctl enable --now docker ::: tip Recent Linux kernel Since the version 6.1 of the linux kernel, swap is enabled by default. If you are running a kernel version 6.1 or newer, you can skip this step. To check your kernel version, run `uname -r`. ::: + On most systems, Docker will be unable to setup swap space by default. You can confirm this by running `docker info` and looking for the output of `WARNING: No swap limit support` near the bottom. Enabling swap is entirely optional, but we recommended doing it if you will be hosting for others and to prevent OOM errors.