From eecf21f26e325944ac74c8dde9ae82a9cdadd92a Mon Sep 17 00:00:00 2001 From: Igor Aleksandrov Date: Thu, 6 Mar 2025 20:39:12 +0400 Subject: [PATCH] Change directory after pulling a sample Docker application (#22179) ## Description This PR updates `git clone` command for sample repositories with `&& cd `. Forcing to change the working directory should reduce the risk of forgetting to do. ## Related issues or tickets ## Reviews @usha-mandya - [ ] Technical review - [x] Editorial review - [ ] Product review --- content/guides/bun/containerize.md | 2 +- content/guides/bun/develop.md | 2 +- content/guides/cpp/develop.md | 2 +- content/guides/deno/containerize.md | 2 +- content/guides/deno/develop.md | 2 +- content/guides/nodejs/containerize.md | 2 +- content/guides/python/containerize.md | 2 +- content/guides/r/containerize.md | 2 +- content/guides/rust/build-images.md | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/content/guides/bun/containerize.md b/content/guides/bun/containerize.md index 3e914d5756..536f9f080d 100644 --- a/content/guides/bun/containerize.md +++ b/content/guides/bun/containerize.md @@ -36,7 +36,7 @@ directory to a directory that you want to work in, and run the following command to clone the repository: ```console -$ git clone https://github.com/dockersamples/bun-docker.git +$ git clone https://github.com/dockersamples/bun-docker.git && cd bun-docker ``` You should now have the following contents in your `bun-docker` directory. diff --git a/content/guides/bun/develop.md b/content/guides/bun/develop.md index 0ef2815c37..7de9bd63ed 100644 --- a/content/guides/bun/develop.md +++ b/content/guides/bun/develop.md @@ -23,7 +23,7 @@ In this section, you'll learn how to set up a development environment for your c Clone the sample application to use with this guide. Open a terminal, change directory to a directory that you want to work in, and run the following command to clone the repository: ```console -$ git clone https://github.com/dockersamples/bun-docker.git +$ git clone https://github.com/dockersamples/bun-docker.git && cd bun-docker ``` ## Automatically update services diff --git a/content/guides/cpp/develop.md b/content/guides/cpp/develop.md index b3da1f6b82..016eac56ce 100644 --- a/content/guides/cpp/develop.md +++ b/content/guides/cpp/develop.md @@ -24,7 +24,7 @@ In this section, you'll learn how to set up a development environment for your c Clone the sample application to use with this guide. Open a terminal, change directory to a directory that you want to work in, and run the following command to clone the repository: ```console -$ git clone https://github.com/dockersamples/c-plus-plus-docker.git +$ git clone https://github.com/dockersamples/c-plus-plus-docker.git && cd c-plus-plus-docker ``` ## Automatically update services diff --git a/content/guides/deno/containerize.md b/content/guides/deno/containerize.md index 5c5239bf0a..70175896df 100644 --- a/content/guides/deno/containerize.md +++ b/content/guides/deno/containerize.md @@ -25,7 +25,7 @@ directory to a directory that you want to work in, and run the following command to clone the repository: ```console -$ git clone https://github.com/dockersamples/docker-deno.git +$ git clone https://github.com/dockersamples/docker-deno.git && cd docker-deno ``` You should now have the following contents in your `deno-docker` directory. diff --git a/content/guides/deno/develop.md b/content/guides/deno/develop.md index f90a2e0304..d717823b63 100644 --- a/content/guides/deno/develop.md +++ b/content/guides/deno/develop.md @@ -23,7 +23,7 @@ In this section, you'll learn how to set up a development environment for your c Clone the sample application to use with this guide. Open a terminal, change directory to a directory that you want to work in, and run the following command to clone the repository: ```console -$ git clone https://github.com/dockersamples/docker-deno.git +$ git clone https://github.com/dockersamples/docker-deno.git && cd docker-deno ``` ## Automatically update services diff --git a/content/guides/nodejs/containerize.md b/content/guides/nodejs/containerize.md index 97d945ca94..bcff0d92a2 100644 --- a/content/guides/nodejs/containerize.md +++ b/content/guides/nodejs/containerize.md @@ -31,7 +31,7 @@ directory to a directory that you want to work in, and run the following command to clone the repository: ```console -$ git clone https://github.com/docker/docker-nodejs-sample +$ git clone https://github.com/docker/docker-nodejs-sample && cd docker-nodejs-sample ``` ## Initialize Docker assets diff --git a/content/guides/python/containerize.md b/content/guides/python/containerize.md index 74ab2bb9fc..039e819104 100644 --- a/content/guides/python/containerize.md +++ b/content/guides/python/containerize.md @@ -27,7 +27,7 @@ The sample application uses the popular [FastAPI](https://fastapi.tiangolo.com) Clone the sample application to use with this guide. Open a terminal, change directory to a directory that you want to work in, and run the following command to clone the repository: ```console -$ git clone https://github.com/estebanx64/python-docker-example +$ git clone https://github.com/estebanx64/python-docker-example && cd python-docker-example ``` ## Initialize Docker assets diff --git a/content/guides/r/containerize.md b/content/guides/r/containerize.md index 4357e40c79..14b4a8dd30 100644 --- a/content/guides/r/containerize.md +++ b/content/guides/r/containerize.md @@ -26,7 +26,7 @@ The sample application uses the popular [Shiny](https://shiny.posit.co/) framewo Clone the sample application to use with this guide. Open a terminal, change directory to a directory that you want to work in, and run the following command to clone the repository: ```console -$ git clone https://github.com/mfranzon/r-docker-dev.git +$ git clone https://github.com/mfranzon/r-docker-dev.git && cd r-docker-dev ``` You should now have the following contents in your `r-docker-dev` diff --git a/content/guides/rust/build-images.md b/content/guides/rust/build-images.md index edf2a0b821..d2e4142747 100644 --- a/content/guides/rust/build-images.md +++ b/content/guides/rust/build-images.md @@ -25,7 +25,7 @@ dependencies, and any other file system objects required. Clone the sample application to use with this guide. Open a terminal, change directory to a directory that you want to work in, and run the following command to clone the repository: ```console -$ git clone https://github.com/docker/docker-rust-hello +$ git clone https://github.com/docker/docker-rust-hello && cd docker-rust-hello ``` ## Create a Dockerfile for Rust