rocker-org / rocker-versioned

Run current & prior versions of R using docker
https://hub.docker.com/r/rocker/r-ver
GNU General Public License v2.0
297 stars 169 forks source link

Request: Remove the VOLUME command from the rstudio Dockerfile #195

Closed summerswallow-whi closed 4 years ago

summerswallow-whi commented 4 years ago

I've got a situation where I'm bind mounting /home/rstudio. The VOLUME kitematic command is producing a directory in /home/rstudio which is causing confusion to our users who are statisticians and are not tech saavy. There is no way to remove it after the fact without granting the docker container privileges which can expose vulnerabilities.

In order for me to securely remove the directory, I have to copy the Dockerfile and remove the line and build it myself. This runs the risk of missing updates you might have to the container.

Until such day docker implements an "UNVOLUME" command, it seems to me it is far easier for kitematic users to create a simple Dockerfile FROM rocker/rstudio VOLUME /home/rstudio/kitematic to get what they need than to make the rest of use copy the Dockerfile and delete the line VOLUME line.

If you can think of another work around I'm happy to try.

cboettig commented 4 years ago

Thanks for the report. Yeah, we could probably deprecate the use of kitematic, not sure if we have many Kitematic users and it is annoying to have that volume there

summerswallow-whi commented 4 years ago

Its easy enough to create a two line Dockerfile to put it back in. Very difficult to remove.

cboettig commented 4 years ago

ok, will do starting with the R-4.0.0 release and going forward. thanks again.