-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS Podman Fails Due to Connection Reset due to Running Cargo on Mounted Volume #757
Comments
Couldn't we warn user when the tool runs as well? We could check if it is running on macOS and if the engine is podman, error out. |
I think a warning is good, I'm worried if the upstream issue is patched we might error out even though it works, especially if we have a release and the patch in podman is submitted before our next release. |
This actually works when using |
I'm having this same problem while trying to cross compile a simple program for AWS Graviton from my MBP M1 machine.
I'm very new to the Rust echosystem so I'm not really sure what I'm doing. Is this something I can correct with a configuration or something? @Alexhuszagh mentioned using |
The better solution would be to use Docker, but you can use cross remote (this requires copying data to and from a data volume, so it's a bit slower than normal). If you use a persistent data volume and the remote server is on the same machine as the client, then the performance impact won't be too bad. See the remote section on our wiki. EDIT: If you're using the local host, you can omit |
Checklist
Describe your issue
Any attempt to use podman on macOS fails, while Docker works, even if SELinux labels are removed (#756 and containers/podman#13631) due to the connection being reset when a binary is run that is mounted on the host. This is an issue because we mount the Rust toolchain from the host into the container, and then run the mounted toolchain, meaning any build will fail. The upstream issues are containers/podman#14492 and containers/podman#14142.
What target(s) are you cross-compiling for?
any target
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
any, unrelated to cross directly
Example
A simple example that causes failure on any macOS system is:
Running the same code, except using docker as the container engine works.
Additional information / notes
We might want to warn users that podman on macOS is currently unsupported on the Wiki?
The text was updated successfully, but these errors were encountered: