Closed stepankuzmin closed 6 years ago
My apologies! I can think of two things you could try:
COPY . /home/rust/src/
to ADD . /home/rust/src
. This may be a mistake in my example.root
versus rust
issue here, and we may need to add a RUN sudo chmod -R /home/rust
after the ADD
.Please let me know what works so I can fix the example!
Thanks for reply! I've tried both ADD . /home/rust/src
and COPY . /home/rust/src/
and none of this worked. But it seems that setting permission directly helped. Thanks!
Any update on this - trying a cross build config - pulling the container from the repo 'ekidd/rust-musl-builder' and cant run the build command in the container
rust@d0bb86cbdab6:~/src$ cargo build --release
error: failed to open: /home/rust/src/target/release/.cargo-lock
Caused by: Permission denied (os error 13)
I running the latest builds
rustc --version
rustc 1.24.1 (d3ae9a9e0 2018-02-27)
cargo --version cargo 0.25.0 (96d8071da 2018-02-26)
Just ran the Dockerfile on the repo and getting an warning of
debconf: delaying package configuration, since apt-utils is not installed
Also the creation of the container falls over with the following erorr
Step 4/14 : ADD sudoers /etc/sudoers.d/nopasswd
ADD failed: stat /var/lib/docker/tmp/docker-builder600994308/sudoers: no such file or directory
I've faced the same error but fixed it by below
> cd ..
> sudo chown -R rust:rust src
Consider this Dockerfile:
I'm getting following error on building image:
My app is simply generated with
cargo new --bin app