Warn when volume mounting into /workspace
#2237
Labels
good first issue
A good first issue to get started with.
help wanted
Need some extra hands to get this done.
status/ready
Issue ready to be worked on.
type/enhancement
Issue that requests a new feature or improvement.
Milestone
Description
This isn’t a super common problem, but we do occasionally see people mount into workspace.
a.) It doesn’t make a ton of sense. /workspace is your app files, so if you want it there, just include it with your app files.
b.) Buildpacks can delete files in /workspace. For example, if you do a source build it’s common to delete all the source code so it’s not in the production image. Well, if you volume map into /workspace, your mapped files might get deleted too.
Proposed solution
Warn so users know it's not a good idea
The text was updated successfully, but these errors were encountered: