serversideup / spin

🚀 Replicate your production environment locally using Docker. Just run "spin up". It's really that easy.
https://serversideup.net/open-source/spin/
GNU General Public License v3.0
1.21k stars 43 forks source link

add `--user` parameter to `docker run` cmd #84

Closed netzknecht closed 4 months ago

netzknecht commented 4 months ago

When I started a new Laravel project with the current Spin version (v2.0.0-beta5), a file permission error occurred when Spin tried to copy its package files into the project.

Bildschirmfoto vom 2024-06-11 12-39-51

I think it occurs because the --user parameter is missing on the relating docker run command, so I've added it with this patch which has worked for me. There might be other docker run commands, where the parameter has to be added. Perhaps, it might be useful to add a wrapper function to call docker run with some default parameters.

jaydrogers commented 4 months ago

Thanks for your efforts here! I have a major change coming up in https://github.com/serversideup/spin/tree/75-spin-deploy-allow-deployments-without-cicd which will dramatically change how this works.

I am hoping to have more details on this release soon. Stay tuned!