mounting local home directory in Rstudio docker?


I installed rstudio server by running:

docker run -d -p 8787:8787 -e USER='MY_USER' -e PASSWORD='MY_PASSWORD' rocker/hadleyverse

I would like to link (mount?) my local home directory (or a folder) to that docker container. Is that possible? how?



You use -v or --volume to mount directories into a container. For example:

docker run -d \ -p 8787:8787 \ -e USER='MY_USER' \ -e PASSWORD='MY_PASSWORD' \ -v $HOME:/src \ rocker/hadleyverse

Now your container will have a folder named /src with the contents of your local home folder.


Use the -v flag:

docker run -d -p 8787:8787 -e USER='MY_USER' -e PASSWORD='MY_PASSWORD' -v $HOME:/data rocker/hadleyverse


Please see the documentation entitled <a href="https://github.com/rocker-org/rocker/wiki/Sharing-files-with-host-machine" rel="nofollow">Sharing files with host machine</a> in the wiki.


  • how to handle media button to stop a song?
  • PHP redirect not working on server
  • How to loop through mysqli_multi_query() to find out what queries succeeded?
  • javascript remove NULL from the result
  • How to mark unseen last unread message S22.imap
  • Android Galaxy S Phone - ADB Debug Bridge Trouble on Mac OSX
  • How to configure a non-default serviceAccount on a deployment
  • Can't spy on an event handler even though I can spy on other methods
  • container disable service account
  • Installing Perl6 and Panda on Ubuntu 15.10. Problems with bootstrap.pl
  • Can my PDF ping my server when it is opened?
  • Android app gives error “BatteryStatsImpl: reading network stats”
  • Security issues with PHP's Readfile method
  • Web.config system.webserver errors
  • ADO and msqli connections very slow
  • Webgrid not refreshing after delete MVC
  • Converting a WriteableBitmap image ToArray in UWP
  • PHP buffered output depending on server setting?
  • Custom validator control occupying space even though display set to dynamic
  • Android full screen on only one activity?
  • Jquery UI tool tip close icon
  • Checking free space on FTP server
  • Change Inet root folder for iis 7
  • ImageMagick, replace semi-transparent white with opaque white
  • Paperclip, set path outside of rails root folder
  • Why is an OPTIONS request sent to the server?
  • Is there any way to access browser form field suggestions from JavaScript?
  • Accessing IRQ description array within a module and displaying action names
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • Updated Ionic CLI but shows previous version (Windows)
  • Traverse Array and Display in markup
  • Proper folder structure for lots of source files
  • Load html files in TinyMce
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • Qt: Run a script BEFORE make
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • Append folder name and increment by 1 using batch script
  • costura.fody for a dll that references another dll