Sign inSign up

Rust Development Container Images

Verified Publisher

devcontainers/rust

By Microsoft

•Updated about 2 years ago

A dev container spec-supported image for working with Rust.

3

microsoft/devcontainers-rust repository overview

⁠Rust

⁠About

Develop Rust based applications. Includes appropriate runtime args and everything you need to get up and running.

MetadataValue
CategoriesCore, Languages
Image typeDockerfile
Published imagesmcr.microsoft.com/devcontainers/rust
Available image variantstrixie, bookworm (full list⁠)
Published image architecture(s)x86-64, arm64/aarch64 for trixie and bookworm variants
Container host OS supportLinux, macOS, Windows
Container OSDebian
Languages, platformsRust

See 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 trixie, bookworm to pin to an OS version)
  • mcr.microsoft.com/devcontainers/rust:1 (or 1-trixie, 1-bookworm to pin to an OS version)

Refer to this guide⁠ for more details.

You can decide how often you want updates by referencing a semantic version⁠ of each image. For example:

  • mcr.microsoft.com/devcontainers/rust:2-1 (or 2-1-trixie, 2-1-bookworm to pin to an OS version)
  • mcr.microsoft.com/devcontainers/rust:2.1-1 (or 2.1-1-trixie, 2.1-1-bookworm to pin to an OS version)
  • mcr.microsoft.com/devcontainers/rust:2.1.0-1 (or 2.1.0-1-trixie, 2.1.0-1-bookworm to pin to an OS version)

However, we only do security patching on the latest non-breaking, in support⁠ versions of images (e.g. 1-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⁠ for information on the contents of each version and here for a complete list of available tags⁠.

Alternatively, you can use the contents of .devcontainer⁠ to fully customize your container's contents or to build it for a container host architecture not supported by the image.

⁠Support

The dev container spec images are maintained in the devcontainers/images⁠ repo. You can explore each image and open issues or feature requests.

⁠License

Copyright (c) Microsoft Corporation. All rights reserved.

Licensed under the MIT License. See LICENSE⁠.

Tag Summary

No tags have been pushed to this repository yet.