Don't use --user when running docker on windows - #1371
Conversation
|
can you show a failure mode? usually it doesn't matter if there's a user with that uid inside also it's "docker" ;) |
770a074 to
8fcfea9
Compare
|
Wow, you reviewed fast... Let me fix some pre-commit issue and also address your comments! @asottile |
We have a docker image in which we pre-define some git configuration. It's been persisted in |
|
@asottile comments addressed, build has passed! Ready for another look. Thank you! |
I don't think that this fixes that then, since the current user will still be used on POSIX platforms you could instead put your in-container configuration at |
You are correct. I'm able to mess around with /etc/gitconfig to persist that config at system level instead of user level. OTOH, I still think it would be useful to accept the change in this PR. We can avoid using an imaginary user (1000) when running docker on Windows. What do you think? @asottile |
|
I'm torn because the current code "works", this change just makes it different 🤔 |
3f6e787 to
23d5b78
Compare

Previous PR #1094 hard code the docker user to
1000:1000on Windows platform. This is a fragile assumption since not all docker image would have user 1000 configured inside of the container.Instead, we don't use docker user on Windows to allow it to use the default user defined on the image.