Page MenuHomePhabricator

Update documentation to specify UID/GID override for macOS
Closed, ResolvedPublic

Description

I realized today that at some point Docker for Mac's behavior has changed, and our existing docker-compose.yml will execute as a root user. Consequently you run into the same permission problems that occur on Linux if you don't have a docker-compose.override.yml file containing the MW_DOCKER_UID/MW_DOCKER_GID env vars present.

So, we should update the documentation to reflect that docker-compose.override.yml is required for Mac as well as Linux. I don't know if it is needed on Docker for Windows.

Event Timeline

Although, maybe this isn't correct because attempting something like docker cp -a somefile {container} fails with: Error response from daemon: getent unable to find entry "502:20" in passwd database.

Change 659972 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[mediawiki/core@master] [docker] Set user/group mapping for all host OS, not just Linux

https://gerrit.wikimedia.org/r/659972

Change 659972 merged by jenkins-bot:
[mediawiki/core@master] [docker] Set user/group mapping for all host OS, not just Linux

https://gerrit.wikimedia.org/r/659972

Krinkle assigned this task to kostajh.