opencve / opencve-docker

Docker Image packaging for OpenCVE
https://www.opencve.io
Other
41 stars 38 forks source link

Unable to create swapfile #48

Open FallconTXoC opened 9 months ago

FallconTXoC commented 9 months ago

Expected Behavior

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

Specifications

FallconTXoC commented 9 months ago

Update : This is also happening using Docker 24.0.7