Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create swapfile #48

Open
FallconTXoC opened this issue Jan 30, 2024 · 1 comment
Open

Unable to create swapfile #48

FallconTXoC opened this issue Jan 30, 2024 · 1 comment

Comments

@FallconTXoC
Copy link

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

  • 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)
  • Docker version: Using Podman v4.9.0
  • Docker-compose version: v2.24.3
@FallconTXoC
Copy link
Author

Update : This is also happening using Docker 24.0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant