swapoff

Disable devices and files for swapping. Note: path/to/file can either point to a regular file or a swap partition. More information: <https://manned.org/swapoff>.

Debian Debian
RUN apt-get update && \ apt-get install -y mount
Ubuntu
RUN apt-get update && \ apt-get install -y mount
Alpine
RUN apk add util-linux
Arch Arch Linux
RUN pacman -S --noconfirm util-linux
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y mount
CentOS
RUN yum install -y util-linux
Fedora
RUN dnf install -y util-linux
Raspbian
RUN apt-get update && \ apt-get install -y mount
click the source code to copy install swapoff on any operating system with command-not-found.com