Change directory after pulling a sample Docker application (#22179)

## Description

This PR updates `git clone` command for sample repositories with `&& cd
<repo name>`. 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
This commit is contained in:
Igor Aleksandrov 2025-03-06 20:39:12 +04:00 committed by GitHub
parent eb331a22df
commit eecf21f26e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 9 additions and 9 deletions

View File

@ -36,7 +36,7 @@ directory to a directory that you want to work in, and run the following
command to clone the repository: command to clone the repository:
```console ```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. You should now have the following contents in your `bun-docker` directory.

View File

@ -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: 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 ```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 ## Automatically update services

View File

@ -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: 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 ```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 ## Automatically update services

View File

@ -25,7 +25,7 @@ directory to a directory that you want to work in, and run the following
command to clone the repository: command to clone the repository:
```console ```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. You should now have the following contents in your `deno-docker` directory.

View File

@ -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: 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 ```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 ## Automatically update services

View File

@ -31,7 +31,7 @@ directory to a directory that you want to work in, and run the following command
to clone the repository: to clone the repository:
```console ```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 ## Initialize Docker assets

View File

@ -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: 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 ```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 ## Initialize Docker assets

View File

@ -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: 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 ```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` You should now have the following contents in your `r-docker-dev`

View File

@ -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: 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 ```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 ## Create a Dockerfile for Rust