asterinas/tools/docker
li041 b166a03c79 Install virtiofsd in Docker image 2026-05-22 02:52:02 -07:00
..
nix Refactor apps test to support fine-grained build 2026-02-12 16:13:33 -08:00
Dockerfile Install virtiofsd in Docker image 2026-05-22 02:52:02 -07:00
README.md Add arm64 Docker image 2026-04-07 04:47:25 -07:00
run_dev_container.sh Support NixOS distro and add CI to test 2025-12-02 15:30:30 +08:00

README.md

Asterinas Development Docker Images

Asterinas development Docker images are provided to facilitate developing and testing Asterinas project. These images can be found in the asterinas/asterinas repository on DockerHub.

Building Docker Images

Asterinas development Docker image is based on an OSDK development Docker image. To build an Asterinas development Docker image and test it on your local machine, navigate to the root directory of the Asterinas source code tree and execute the following command:

cd <asterinas dir>
# Build Docker image
docker buildx build \
    -f tools/docker/Dockerfile \
    --platform linux/amd64,linux/arm64 \
    --build-arg ASTER_RUST_VERSION=$(grep "channel" rust-toolchain.toml | awk -F '"' '{print $2}') \
    --build-arg BASE_VERSION=$(cat DOCKER_IMAGE_VERSION) \
    -t asterinas/asterinas:$(cat DOCKER_IMAGE_VERSION) \
    .

Tagging and Uploading Docker Images

The Docker images are tagged according to the version specified in the DOCKER_IMAGE_VERSION file at the project root. Check out the version bump documentation on how new versions of the Docker images are released.