Skip to content

Commit eecf21f

Browse files
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
1 parent eb331a2 commit eecf21f

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

content/guides/bun/containerize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ directory to a directory that you want to work in, and run the following
3636
command to clone the repository:
3737

3838
```console
39-
$ git clone https://github.com/dockersamples/bun-docker.git
39+
$ git clone https://github.com/dockersamples/bun-docker.git && cd bun-docker
4040
```
4141

4242
You should now have the following contents in your `bun-docker` directory.

content/guides/bun/develop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In this section, you'll learn how to set up a development environment for your c
2323
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:
2424

2525
```console
26-
$ git clone https://github.com/dockersamples/bun-docker.git
26+
$ git clone https://github.com/dockersamples/bun-docker.git && cd bun-docker
2727
```
2828

2929
## Automatically update services

content/guides/cpp/develop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In this section, you'll learn how to set up a development environment for your c
2424
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:
2525

2626
```console
27-
$ git clone https://github.com/dockersamples/c-plus-plus-docker.git
27+
$ git clone https://github.com/dockersamples/c-plus-plus-docker.git && cd c-plus-plus-docker
2828
```
2929

3030
## Automatically update services

content/guides/deno/containerize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ directory to a directory that you want to work in, and run the following
2525
command to clone the repository:
2626

2727
```console
28-
$ git clone https://github.com/dockersamples/docker-deno.git
28+
$ git clone https://github.com/dockersamples/docker-deno.git && cd docker-deno
2929
```
3030

3131
You should now have the following contents in your `deno-docker` directory.

content/guides/deno/develop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In this section, you'll learn how to set up a development environment for your c
2323
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:
2424

2525
```console
26-
$ git clone https://github.com/dockersamples/docker-deno.git
26+
$ git clone https://github.com/dockersamples/docker-deno.git && cd docker-deno
2727
```
2828

2929
## Automatically update services

content/guides/nodejs/containerize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ directory to a directory that you want to work in, and run the following command
3131
to clone the repository:
3232

3333
```console
34-
$ git clone https://github.com/docker/docker-nodejs-sample
34+
$ git clone https://github.com/docker/docker-nodejs-sample && cd docker-nodejs-sample
3535
```
3636

3737
## Initialize Docker assets

content/guides/python/containerize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The sample application uses the popular [FastAPI](https://fastapi.tiangolo.com)
2727
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:
2828

2929
```console
30-
$ git clone https://github.com/estebanx64/python-docker-example
30+
$ git clone https://github.com/estebanx64/python-docker-example && cd python-docker-example
3131
```
3232

3333
## Initialize Docker assets

content/guides/r/containerize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The sample application uses the popular [Shiny](https://shiny.posit.co/) framewo
2626
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:
2727

2828
```console
29-
$ git clone https://github.com/mfranzon/r-docker-dev.git
29+
$ git clone https://github.com/mfranzon/r-docker-dev.git && cd r-docker-dev
3030
```
3131

3232
You should now have the following contents in your `r-docker-dev`

content/guides/rust/build-images.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies, and any other file system objects required.
2525
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:
2626

2727
```console
28-
$ git clone https://github.com/docker/docker-rust-hello
28+
$ git clone https://github.com/docker/docker-rust-hello && cd docker-rust-hello
2929
```
3030

3131
## Create a Dockerfile for Rust

0 commit comments

Comments
 (0)