Skip to content

WSL: Mount linux folder in kubernetes #2555

Answered by adamkpickering
benzman81 asked this question in Q&A
Discussion options

You must be logged in to vote

My understanding of the issue is below. @mook-as if you have anything to add, it would help!

There are three entities we need to be aware of:

  1. the host machine
  2. the RD VM, which is where k8s, dockerd and/or containerd run
  3. the user VM that you are trying to mount a directory from

As you have noticed, both the RD VM and the user VM have access to the C drive on the host machine via /mnt/c/. I'm not aware of any other mounts, but I could be missing something. A simple solution, then, could be working in the /mnt/c directory. That way, any files created in that folder in the user VM would get passed through to the host machine, and then to the RD VM. So you could use the same path for your ho…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mook-as
Comment options

@benzman81
Comment options

Answer selected by benzman81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants