docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Files changed in container get wrong user owner

Open deniscass opened this issue 2 years ago • 3 comments

Description

I`m using latest version of docker-magento in my notebook:

  • Macbook Air M1 2020
  • Archlinux AARCH64 running Docker
  • Magento 2.4.5
  • Files running isolated in Archlinux instance over UTM app
  • Develop in VS Code Latest version accessing Archlinux over remote ssh.

Steps To Reproduce

  1. perform some commands as bin/magento s:upgrade ou bin/composer install/update

Expected Result Perform operations without user owner changes

Actual Result Some files get wrong user after running commands as bin/magento s:upgrade ou bin/composer install/update in some folders as app/etc or app/code. running bin/fixown or bin/fixperms dont fix because files get wrong user in host files. User wrong is "alarm" not "app" normal user inside instance.

deniscass avatar Nov 17 '22 15:11 deniscass

Tagging with unable to replicate as I don't run Linux, but I'll keep this open for a bit to see if anyone else is having this issue.

markshust avatar Nov 20 '22 15:11 markshust

@markshust I get the same issue on Ubuntu 22.04

patruvlad avatar Feb 06 '23 10:02 patruvlad

@markshust @deniscass I managed to figure this out, it only happens in my case when I use Docker Desktop, after switching to Docker Engine everything works fine without wrong owner or permissions

patruvlad avatar Feb 19 '23 19:02 patruvlad