Same username in another container can have different user id

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the containerization category.

Last Updated: 2024-04-25

I had www-data users in wordpress container and wordpress_cli container. Yet they had different user ids! (33 vs. 82)

Therefore file permissions did not work as I naively expected.

This is a general gotcha with user names being the same in two containers (or in two machines generally).