GithubHelp home page GithubHelp logo

Comments (4)

eddelbuettel avatar eddelbuettel commented on July 4, 2024

Sorry, root where?

On the host running docker? That is a local choice; I say no, am member of group docker and can run commands as myself.

Or inside the container? Who care, once I own the outside process as just me nothing is elevated.

from rocker.

cboettig avatar cboettig commented on July 4, 2024

Perhaps the best thing to do is just have a RUN useradd user in r-base, and then at least you can always run the container with --user user instead of as root.

(Currently that won't work for rstudio since 'user' can't write to /var/log/supervisord, but I guess we could work around that).

from rocker.

cboettig avatar cboettig commented on July 4, 2024

@eddelbuettel sorry, root inside the container, as per Docker's official recommendation. It makes a difference particularly when linking volumes, but poses other potential issues too as @wch points out in thread I linked and in the docker article.

from rocker.

cboettig avatar cboettig commented on July 4, 2024

Okay, this now done in r-base as well. The user docker is created, but not set. We advise running containers with the flag --user docker to avoid having a root user. (Note that this is unnecessary for detached/daemonized shells -d such as would typically be used for running a persistent rstudio-server).

from rocker.

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.