IssueRaiser

Conditional mounting

Hello there! I have some mounts in my devContainer defined like ``` "mounts": [ "source=${localEnv:HOME}${localEnv:USERPROFILE}/.config/openstack/clouds.yaml,target=/root/.config/openstack/clouds.yaml,type=bind,consistency=cached", "source=${localEnv:HOME}${localEnv:USERPROFILE}/.kube/config,target=/root/.kube/config,type=bind,consistency=cached" ], ``` Some users might not have those files. They will get an error in that case. Feature Request: Mark mounts as optional or check if they exist on startup. (Happy about any other solution to that as well) Thanks in advance!

Posted by max06 on Jul 12, 2021, 3:18 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments

github (Other)

Conditional mounting

max06Jul 12, 2021, 3:18 PM

Hello there! I have some mounts in my devContainer defined like ``` "mounts": [ "source=${localEnv:HOME}${localEnv:USERPROFILE}/.config/openstack/clouds.yaml,target=/root/.config/openstack/clouds.yaml,type=bind,consistency=cached", "source=${localEnv:HOME}${localEnv:USERPROFILE}/.kube/config,target=/root/.kube/config,type=bind,consistency=cached" ], ``` Some users might not have those files. They will get an error in that case. Feature Request: Mark mounts as optional or check if they exist on startup. (Happy about any other solution to that as well) Thanks in advance!

Comments (0)

No comments yet. Start the discussion.

Comment on this issue