Open
Description
Problem
installing rust via rustup on a debian:latest dockerimage on macos x86_64 seems to install 32 bit version of rust that doesn't run under the image.
$ rustc
error: command failed: 'rustc': No such file or directory (os error 2)
Steps
Dockerfile
FROM debian:latest
RUN apt-get update
RUN apt-get install -y gcc libc6-dev wget curl file
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
CMD bash
$ docker build . --progress=plain -t rustdev > builder.log 2>&1
$ docker run -it rustdev bash
Possible Solution(s)
No response
Notes
$ file ~/.cargo/bin/rustc
/root/.cargo/bin/rustc: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, with debug_info, not stripped
Rustup version
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `(error reading rustc version)`
Installed toolchains
Default host: x86_64-unknown-linux-gnu
rustup home: /root/.rustup
stable-x86_64-unknown-linux-gnu (default)
(error reading rustc version)