mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user