emk / rust-musl-builder

Docker images for compiling static Rust binaries using musl-libc and musl-gcc, with static versions of useful C libraries. Supports openssl and diesel crates.
Apache License 2.0
1.54k stars 193 forks source link

standard_init_linux.go:178: exec user process caused "permission denied" #20

Closed greyblake closed 7 years ago

greyblake commented 7 years ago

Hi! I am getting this error:

docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder cargo build --release
standard_init_linux.go:178: exec user process caused "permission denied"

Any ideas how to make it work?

My env:

uname -a
Linux susanne 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux
docker --version
Docker version 17.03.1-ce, build c6d412e
greyblake commented 7 years ago

Looks like it was a problem with my Docker setup.