Skip to content

Investigate: Docker rootless native overlay2 with SELinux #8

@LTSCommerce

Description

@LTSCommerce

Summary

Docker rootless mode with native overlay2 storage driver does not work when SELinux is enabled (even in permissive mode). Docker explicitly blocks this combination.

Background

  • fuse-overlayfs has ~2x CPU overhead due to userspace/kernel context switches
  • Native overlay2 would provide better performance for I/O-heavy workloads
  • Kernel 5.13+ added rootless overlay support with SELinux fixes
  • However, Docker/Moby intentionally disabled this in PR #42462

Error Message

level=error msg="overlay is not supported for Rootless with SELinux" storage-driver=overlay2
failed to start daemon: error initializing graphdriver: driver not supported: overlay2

Related Links

Alternatives to Investigate

  1. Podman - Supports native overlay2 + SELinux in rootless mode via containers/storage library
  2. Disable SELinux - Not recommended
  3. Wait for Docker - May never be supported

Related Files

  • Disabled playbook: playbooks/imports/optional/experimental/play-docker-overlay2-migration.yml

Action Items

  • Test if Podman with native overlay2 works on this system
  • Evaluate effort to migrate CCY from Docker to Podman
  • Monitor Docker/Moby for any changes to SELinux+overlay2 support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions