Skip to content

Don't alert on root if running inside docker #14325

Closed as not planned
Closed as not planned

Description

@raymondjxu

Is your feature request related to a problem?

Paper alerts the user that they're running as root even if it's inside Docker.

Describe the solution you'd like.

Check for .dockerenv before alerting in console that you're running as the root user. It's kind of annoying, especially as most people run their servers in Docker.

Describe alternatives you've considered.

Check other files like /proc/1/cgroup or /proc/1/mountinfo for strings like "docker" or "container."

Other

No response

Activity

  1. masmc05 commented on Sep 30, 2026

    @masmc05
    Contributor

    https://www.docker.com/blog/understanding-the-docker-user-instruction/
    It isn't recommended to run apps as root even inside docker

  2. electronicboy commented on Sep 30, 2026

    @electronicboy
    Member

    root is root, and this is already on the boundary of what we're happy to allow especially given the repeated exploits going around, I don't really want us to go down the route of having code which pokes at procfs, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions