From 2766e5652a35699f6633c822e10f4f08821ec444 Mon Sep 17 00:00:00 2001 From: Charystag <57284562+Charystag@users.noreply.github.com> Date: Fri, 20 Dec 2024 05:04:07 +0100 Subject: [PATCH] Changed bind mount declaration in azure cli docker run command bind mount was declared with the option `-v`, it is now declared with the option `--mount` according to the recommendations that can be found on the docker docs website 1. in the volumes section of the docker docs : https://docs.docker.com/engine/storage/volumes/#syntax 2. in the bind mount section of the docker run command doc : https://docs.docker.com/reference/cli/docker/container/run/#mount Where it is written that the `--mount` syntax should be preferred to the `-v` syntax and that it supports all the mounting options --- docs-ref-conceptual/run-azure-cli-docker.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs-ref-conceptual/run-azure-cli-docker.md b/docs-ref-conceptual/run-azure-cli-docker.md index 31ae657521..fa272ae75e 100644 --- a/docs-ref-conceptual/run-azure-cli-docker.md +++ b/docs-ref-conceptual/run-azure-cli-docker.md @@ -29,10 +29,10 @@ docker run -it mcr.microsoft.com/azure-cli:cbl-mariner2.0 > [!NOTE] > If you want to pick up the SSH keys from your user environment, -> use `-v ${HOME}/.ssh:/root/.ssh` to mount your SSH keys in the environment. +> use `--mount type=bind,src="$HOME"/.ssh,dst=/root/.ssh` to mount your SSH keys in the environment. > > ```bash -> docker run -it -v ${HOME}/.ssh:/root/.ssh mcr.microsoft.com/azure-cli:cbl-mariner2.0 +> docker run -it --mount type=bind,src="$HOME"/.ssh,dst=/root/.ssh mcr.microsoft.com/azure-cli:cbl-mariner2.0 > ``` The CLI is installed on the image as the `az` command in `/usr/local/bin`.