https://github.com/mzabaluev/docker-rust-mountable-cargo-home
A spin of the official Rust Docker image with mountable /usr/local/cargo
https://github.com/mzabaluev/docker-rust-mountable-cargo-home
docker-image rust
Last synced: about 1 month ago
JSON representation
A spin of the official Rust Docker image with mountable /usr/local/cargo
- Host: GitHub
- URL: https://github.com/mzabaluev/docker-rust-mountable-cargo-home
- Owner: mzabaluev
- Created: 2017-12-21T17:29:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-16T01:09:35.000Z (over 7 years ago)
- Last Synced: 2025-03-17T20:14:42.273Z (over 1 year ago)
- Topics: docker-image, rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A spin of the official Rust image with the binaries moved away from
`/usr/local/cargo`, to make the image work when the entire `$CARGO_HOME`
is bind-mounted to a host directory or other external storage.
This is used as a simple way to preserve Cargo caches and the authentication
token between container runs.
Note that if rustup is run inside the container, it will install any new
binaries into `/usr/local/cargo/bin/`, which may not be what the user wanted
when the parent of that directory is bind-mounted.