As explained in the docs, swapfile should be created with no problem in the webserver container.
Actual Behavior
swapon /swapfile throws an Operation not permitted error. When checking perms by doing a swapoff -a system indicates that we are not a superuser. This kind of behavior is usual in a VPS environment when using a specific OS that limits actions, but should not happen in a container. Though I'm using Podman so I'm not sure if this is related to it, but this is unlikely.
Steps to Reproduce the Problem
Build the containers using the steps described in the docs.
Start the containers using the steps described in the docs.
Open a shell in the webserver container and use the steps to create a swapfile in the docs.
Specifications
OpenCVE version: Latest
Platform: Windows Server 2022 (using WSL 2 Ubuntu 22.04.1 LTS)
Expected Behavior
As explained in the docs, swapfile should be created with no problem in the webserver container.
Actual Behavior
swapon /swapfile
throws anOperation not permitted
error. When checking perms by doing aswapoff -a
system indicates that we are not a superuser. This kind of behavior is usual in a VPS environment when using a specific OS that limits actions, but should not happen in a container. Though I'm using Podman so I'm not sure if this is related to it, but this is unlikely.Steps to Reproduce the Problem
Specifications