Comments (4)
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.
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.
@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.
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)
- r-base containers :4.1.2, :4.1.3, and latest break with ERROR: R_HOME ('/usr/lib/R') not found HOT 10
- Warning: unable to load shared object 'R_X11.so': libXt.so.6: cannot open shared object file HOT 2
- R Docker Images CVE's HOT 2
- Which is the latest Dockerfile? HOT 4
- Does r2u fit into Rocker? HOT 10
- OpenBLAS warning in r-base HOT 6
- Distroless R? HOT 2
- Use reticulate and python in docker container to deploy plumber api HOT 1
- libk5crypto in r-base image doesn't work: "Random number generator could not be seeded while getting initial credentials" HOT 8
- rocker/r-base:4.2.1: addgroup: addgroup with two arguments is an unspecified operation. HOT 3
- r-base:4.1.2 and higher on ppc64le does not work. HOT 4
- apt-get install failing for libssl-dev with dpkg error in docker build HOT 6
- Cannot connect to SQL database HOT 4
- cannot build docker due to usrmerge failing HOT 4
- `'lib = "/usr/local/lib/R/site-library"' is not writable` error when install R packages by non-root user HOT 3
- wiki: best practices for creating dockerfiles HOT 6
- `r-base` (Docker Official Image) is not updated HOT 5
- Migrating from Dockerhub? HOT 3
- Container for RStudio (not server) HOT 1
- MRAN repository snapshots were deleted - Failing jobs because packages can't be found anymore HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocker.