-
Notifications
You must be signed in to change notification settings - Fork 548
/
README.md
45 lines (29 loc) · 2.55 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Rust
## Summary
*Develop Rust based applications. Includes appropriate runtime args and everything you need to get up and running.*
| Metadata | Value |
|----------|-------|
| *Categories* | Core, Languages |
| *Image type* | Dockerfile |
| *Published images* | mcr.microsoft.com/devcontainers/rust |
| *Available image variants* | buster, bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/rust/tags/list)) |
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bullseye` variant |
| *Container host OS support* | Linux, macOS, Windows |
| *Container OS* | Debian |
| *Languages, platforms* | Rust |
See **[history](history)** for information on the contents of published images.
## Using this image
You can directly reference pre-built versions of `.devcontainer/Dockerfile` by using the `image` property in `.devcontainer/devcontainer.json` or updating the `FROM` statement in your own `Dockerfile` to the following. An example `Dockerfile` is included in this repository.
- `mcr.microsoft.com/devcontainers/rust:latest` (or `bullseye`, `buster` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/rust:1` (or `1-bullseye`, `1-buster` to pin to an OS version)
Refer to [this guide](https://containers.dev/guide/dockerfile) for more details.
You can decide how often you want updates by referencing a [semantic version](https://semver.org/) of each image. For example:
- `mcr.microsoft.com/devcontainers/rust:0-1` (or `0-1-bullseye`, `0-1-buster` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/rust:0.202-1` (or `0.202-1-bullseye`, `0.202-1-buster` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/rust:0.202.0-1` (or `0.202.0-1-bullseye`, `0.202.0-1-buster` to pin to an OS version)
However, we only do security patching on the latest [non-breaking, in support](https://github.com/devcontainers/images/issues/90) versions of images (e.g. `0-1`). You may want to run `apt-get update && apt-get upgrade` in your Dockerfile if you lock to a more specific version to at least pick up OS security updates.
See [history](history) for information on the contents of each version and [here for a complete list of available tags](https://mcr.microsoft.com/v2/devcontainers/rust/tags/list).
Alternatively, you can use the contents of `Dockerfile` to fully customize your container's contents or to build it for a container host architecture not supported by the image.
## License
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See [LICENSE](https://github.com/devcontainers/images/blob/main/LICENSE).