Skip to content

Mount current working directory at /workspace in all modes (dual-mount)#24

Draft
Copilot wants to merge 2 commits intodevelfrom
copilot/discuss-dual-mounting-strategies
Draft

Mount current working directory at /workspace in all modes (dual-mount)#24
Copilot wants to merge 2 commits intodevelfrom
copilot/discuss-dual-mounting-strategies

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 13, 2026

rstudio mode only mounted ~/dockerhome/home/rstudio, leaving the current working directory inaccessible inside the container. bash and R modes already mounted both.

Changes

  • rstudio docker run: adds -v "$(pwd)":/workspace so the working directory is immediately available in RStudio at /workspace
  • Startup message: notes the /workspace mount alongside the existing home/packages message
  • Help text + README: updated to reflect all modes now provide dual-mounting

Mount semantics

Mount Purpose
~/dockerhome/home/rstudio Persistent home — R config, packages, intentional file copies; host is otherwise isolated
$(pwd)/workspace Live working directory — project files accessible immediately, changes reflected on host in real time

The two mounts are non-conflicting and complementary.

Original prompt

This section details on the original issue you should resolve

<issue_title>dual-mounting both a persistent home directory and the current working directory</issue_title>
<issue_description>An additional thought, we now have RStudio home directory mounted on host directory ~/dockerhome, and current working host directory mounted on docker directory /workspace. The original is useful for making files created in Docker available after exit or for intentional copying of certain files to ~/dockerhome while not exposing any other user files to Docker, whereas the latter makes the current working directory immediately available in Docker. I find the latter more useful and I don't think there is harm in providing both, but merits discussion.

Originally posted by @lwaldron in #21 (comment)
</issue_description>

<agent_instructions>Please weigh the differences between the mounting strategies and provide a summary of both. </agent_instructions>

Comments on the Issue (you are @copilot in this section)


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Co-authored-by: LiNk-NY <4392950+LiNk-NY@users.noreply.github.com>
Copilot AI changed the title [WIP] Discuss dual-mounting both a persistent home directory and current working directory Mount current working directory at /workspace in all modes (dual-mount) Mar 13, 2026
Copilot AI requested a review from LiNk-NY March 13, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dual-mounting both a persistent home directory and the current working directory

2 participants