Mounting possibilities #4680
Replies: 4 comments 3 replies
-
I believe it should be allowed, but yeah you've made good points as how it should work exactly. |
Beta Was this translation helpful? Give feedback.
-
The reason they would fail in the past was a docker limitation. This may have been resolved and thus not an issue anymore as I called out already. |
Beta Was this translation helpful? Give feedback.
-
The file in the mount that was a plugin for minecraft did not show in the pterodactyl file manager. The mc server did see the .jar plugin that was mounted, but failed to load it because it could not write it config anywhere. As there are 2 mounts to that server, both with their target in /home/container |
Beta Was this translation helpful? Give feedback.
-
Does this break the point of containerization? depending on who can read/write to a shared mount, in a public setting a malicious actor could potentially compromise multiple servers from a single file directory. |
Beta Was this translation helpful? Give feedback.
-
It was proven in #4387 that setting up a mount to target
/home/container/<dir>
in a server will work, and it will show up in the file manager. Prior to this, it was thought that mounts could go virtually anywhere except in/home/container
or a subdirectory of it (and stated in the docs). This raises some important questions...Should this be allowed?
There are a couple of arguments that are against this, the first being that the functionality of the mount directory in the file manager is unexpected. According to #4387 (comment):
The second #4387 (comment) is a bit ambiguous as to what would be fixed, my interpretations are:
/home/container
may be fixed in a future Docker release; orIf this is allowed, what are the restrictions?
Mounts are writable by default which may be an issue if/when multiple servers (or users in said servers) are trying to write to the same files simultaneously via the file manager or API. This is going into unknown territory and it could be a thing that Docker handles already. Similarly, what if you only wanted certain servers to have write access to the mount, and the rest read-only? Should there be support for per-server mount accessibility, or would administrators have to make separate mounts with the separate file permissions? Should that even be allowed?
Opinions
Addressing the first major question, I think that this should be allowed. There is already a lot of confusion over how mounts work and I would argue that there is a lack of information about mounts in servers. Even if this does not become a supported feature, I believe more work can be done to improve the current client-side UI – and just general representation – for mounts (this may be extracted into a separate issue).
Regarding the second question, I'd say this is largely dependent on how Docker handles things, but I like the idea of per-server mount accessibility options. This could be applied in the current system, although it would be limited to users who know what they're doing to actually use it.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions