From d43bdb3d013229f3a848c483a2eac6c36ceea4a2 Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Tue, 17 Sep 2024 16:24:03 -0600 Subject: [PATCH] chore: add documentation on using docker image Signed-off-by: Terry Howe --- versioned_docs/version-1.2/installation.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/versioned_docs/version-1.2/installation.mdx b/versioned_docs/version-1.2/installation.mdx index 5f096086..7d1d4b65 100644 --- a/versioned_docs/version-1.2/installation.mdx +++ b/versioned_docs/version-1.2/installation.mdx @@ -95,6 +95,19 @@ The default WORKDIR in the image is `/workspace`. ::: +You can use the Docker image locally instead of installing a binary. +For example create an alias: + +``` +alias doras='docker run -it --rm -v $(pwd):/workspace ghcr.io/oras-project/oras:v1.2.0' +``` + +Run ORAS commands: + +``` +doras pull ghcr.io/$GH_USER/oras:darwin-amd64 --username $GH_USER --password $GHCR_TOKEN -o ./download +``` + ## Nix Nix is a tool that takes a unique approach to package management and system configuration.