<#16393 Better explain in Docker docs gotcha with ...
# github-notifications
q
#16393 Better explain in Docker docs gotcha with `platforms` and `pex_binary` Issue created by Eric-Arellano
Okay I think what is happening is that for now, Pants creates the binary on your mac beforehand and then copies it into the container. It does not create it in the container (although that is highly requested and we want to do it)
So, the binary is being built w/ macOS deps, and failing to run in Linux. The solution is to use platforms or complete_platforms
This is not very intuitive. While #13682 would be better, in the meantime, this should be better documented. pantsbuild/pants