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 docker category.

Last Updated: 2021-05-16

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).