Skip to content

[Arma 3/General] A Method to mount external Folders into container #585

Description

@Mans334

Egg: Arma 3
File: arma/arma3/egg-arma3.json

Description:
Hello,
I don't know if this is still relevant but the egg description asks to open an issue if a way is found to mount folders outside into /home/container and being able to access them from within the running container.

I have recently tried setting up an ArmA 3 Server using a centralized mod-repository, and I've made it work using bind mounts directly into the volume folder. This also allows me to see and edit the content of the folder from the Pterodactyl webinterface.
Although mounting it read-only doesn't work as the pterodactyl permission-check fails when starting the server. That could probably be adjusted.

These are my /etc/fstab entries:

/opt/modrepo    /var/lib/pterodactyl/volumes/0e632365-fc36-45e3-997b-0382e31cd607/mods none bind
/opt/mpmissions    /var/lib/pterodactyl/volumes/0e632365-fc36-45e3-997b-0382e31cd607/mpmissions none bind

/opt/modrepo    /var/lib/pterodactyl/volumes/f59fa5d1-9090-4b28-ba3a-9f2beb9f8caf/mods none bind
/opt/mpmissions    /var/lib/pterodactyl/volumes/f59fa5d1-9090-4b28-ba3a-9f2beb9f8caf/mpmissions none bind

or temporarily
mount --bind /opt/modrepo /var/lib/pterodactyl/volumes/0e632365-fc36-45e3-997b-0382e31cd607/mods

/opt/modrepo is the centralized mod-repository in this case
/var/lib/pterodactyl/volumes/0e632365-fc36-45e3-997b-0382e31cd607/mods is /home/container/mods

I feel like you could change the current way pterodactyl mounts work to use bind mounts as well, but I'm no expert.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions