Coder Social home page Coder Social logo

neo4j shouldn't run as root about docker-neo4j HOT 7 CLOSED

neo4j avatar neo4j commented on July 19, 2024 5
neo4j shouldn't run as root

from docker-neo4j.

Comments (7)

dmlond avatar dmlond commented on July 19, 2024 1

as more people move to CoreOS, Atomic, Kubernetes, Openshift, etc. this is going to become more pressing.

from docker-neo4j.

nik-sta avatar nik-sta commented on July 19, 2024 1

We have currently the same problem. By policy our company won't allow as to have root access so we have trouble to use Neo4j in our OpenShift platform. Any information when this issue will be solved? Or is there an option to use Neo4j in a container without root?

from docker-neo4j.

benbc avatar benbc commented on July 19, 2024

@xenoterracide You are absolutely correct. We are uncomfortable with running Neo4j as root in the container; however we haven't yet come up with a way of doing this that we're happy with. There is a partial implementation of this in #22. The problem is that Neo4j requires an elevated value of ulimit nofiles, but that is hard to achieve in a Docker image when not running as root.

We hear your feedback and we'll raise the priority of this work.

from docker-neo4j.

hpehl avatar hpehl commented on July 19, 2024

Any updates here? I need to run Neo4j in OpenShift and the current image doesn't allow this. I've looked at the existing PRs and workarounds, but they don't seem to work.

from docker-neo4j.

 avatar commented on July 19, 2024

https://docs.docker.com/engine/reference/commandline/run/#set-ulimits-in-container-ulimit
Docker run (now?) can give appropriate amounts of ulimit nofiles without root. Can you revalidate your points on this?

Ofc, I can give you some help on Dockerfile. I'm not familiar with Neo4j, but Docker.

from docker-neo4j.

kfreytag avatar kfreytag commented on July 19, 2024

@hpehl @xenoterracide @dmlond @nikolastankovic We've released a change here, so within our Docker images Neo4j now runs under the user neo4j.

from docker-neo4j.

hpehl avatar hpehl commented on July 19, 2024

Thanks for the update @kfreytag

from docker-neo4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.