Skip to content

macOS Podman Fails Due to Connection Reset due to Running Cargo on Mounted Volume #757

Open
@Alexhuszagh

Description

@Alexhuszagh

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?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

cross version

any, unrelated to cross directly

Example

A simple example that causes failure on any macOS system is:

mkdir tmp
podman run -it --rm \
    -v "$PWD/tmp":/opt/tmp \
    ubuntu:20.04 \
    bash -c "cp /usr/bin/dpkg /opt/tmp && /opt/tmp/dpkg --version"

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions