Skip to content

Symbolic Link for Module Not Applied in Docker Project #1297

@Ylmzef

Description

@Ylmzef

Description:
I created a symbolic link for my Magento module under src/app/code, but it is not being recognized within the Docker environment. The module does not appear in Magento, and running bin/magento setup:upgrade does not detect it.

Steps to Reproduce:

  1. Inside src/app/code, create a symbolic link to the module:
    ln -s /path/to/my/module src/app/code/Vendor/Module
  2. Start the Docker environment:
    bin/start
  3. Run bin/magento setup:upgrade inside the container.

Expected Behavior:
The module should be detected and applied in the Magento instance.

Actual Behavior:
The module is not recognized, and Magento does not detect the symbolic link.

Environment Details:

  • Host OS: macOS 15.3.1
  • Docker version: 4.38.0

Additional Notes:

  • Running ls -l src/app/code/Vendor on the host shows the symbolic link correctly.
  • Inside the container, the symlink appears as a regular file instead of pointing to the actual module.
  • Possible issue with Docker volume mounts not preserving symbolic links?

Is there a recommended way to work with symbolic links inside this Docker setup? Any guidance would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions