Skip to content

Commit 7c9f78c

Browse files
authored
Fix typos and align with Docker/Compose specs (#22328)
## Description - Fixed minor typos like `msyql`, `model`, `.json|`. - Although `docker remove` works due to CLI fallback, it's not an official command. Replaced with `docker rm` for correctness and clarity. - Replaced `docker-compose.yml` with `compose.yaml` to align with the [Compose specification.](https://github.com/compose-spec/compose-spec/blob/main/03-compose-file.md)
1 parent 5092d97 commit 7c9f78c

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

content/guides/databases.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ To run a container using the GUI:
7878
1. In the Docker Desktop Dashboard, select the global search at the top of the window.
7979
2. Specify `mysql` in the search box, and select the `Images` tab if not already
8080
selected.
81-
3. Hover over the `msyql` image and select `Run`.
82-
The **Run a new container** model appears.
81+
3. Hover over the `mysql` image and select `Run`.
82+
The **Run a new container** modal appears.
8383
4. Expand **Optional settings**.
8484
5. In the optional settings, specify the following:
8585

@@ -181,7 +181,7 @@ interact with your MySQL database.
181181
Before you begin, you must remove any containers you previously ran for this
182182
guide. To stop and remove a container, either:
183183

184-
- In a terminal, run `docker remove --force my-mysql` to remove the container
184+
- In a terminal, run `docker rm --force my-mysql` to remove the container
185185
named `my-mysql`.
186186
- Or, in the Docker Desktop Dashboard, select the **Delete** icon next to your
187187
container in the **Containers** view.
@@ -221,8 +221,8 @@ To run a container using the GUI:
221221
1. In the Docker Desktop Dashboard, select the global search at the top of the window.
222222
2. Specify `mysql` in the search box, and select the `Images` tab if not already
223223
selected.
224-
3. Hover over the `msyql` image and select `Run`.
225-
The **Run a new container** model appears.
224+
3. Hover over the `mysql` image and select `Run`.
225+
The **Run a new container** modal appears.
226226
4. Expand **Optional settings**.
227227
5. In the optional settings, specify the following:
228228

@@ -392,7 +392,7 @@ data persists:
392392
2. Specify `mysql` in the search box, and select the **Images** tab if not
393393
already selected.
394394
3. Hover over the **mysql** image and select **Run**.
395-
The **Run a new container** model appears.
395+
The **Run a new container** modal appears.
396396
4. Expand **Optional settings**.
397397
5. In the optional settings, specify the following:
398398

@@ -433,7 +433,7 @@ data persists:
433433
2. Specify `mysql` in the search box, and select the **Images** tab if not
434434
already selected.
435435
3. Hover over the **mysql** image and select **Run**.
436-
The **Run a new container** model appears.
436+
The **Run a new container** modal appears.
437437
4. Expand **Optional settings**.
438438
5. In the optional settings, specify the following:
439439

content/guides/golang/develop.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ In this section, you'll create a Docker Compose file to start your `docker-gs-pi
521521

522522
### Configure Docker Compose
523523

524-
In your application's directory, create a new text file named `docker-compose.yml` with the following content.
524+
In your application's directory, create a new text file named `compose.yaml` with the following content.
525525

526526
```yaml
527527
version: "3.8"
@@ -582,7 +582,7 @@ The exact value doesn't really matter for this example, because you run Cockroac
582582

583583
### Merging Compose files
584584

585-
The file name `docker-compose.yml` is the default file name which `docker compose` command recognizes if no `-f` flag is provided. This means you can have multiple Docker Compose files if your environment has such requirements. Furthermore, Docker Compose files are... composable (pun intended), so multiple files can be specified on the command line to merge parts of the configuration together. The following list is just a few examples of scenarios where such a feature would be very useful:
585+
The file name `compose.yaml` is the default file name which `docker compose` command recognizes if no `-f` flag is provided. This means you can have multiple Docker Compose files if your environment has such requirements. Furthermore, Docker Compose files are... composable (pun intended), so multiple files can be specified on the command line to merge parts of the configuration together. The following list is just a few examples of scenarios where such a feature would be very useful:
586586

587587
- Using a bind mount for the source code for local development but not when running the CI tests;
588588
- Switching between using a pre-built image for the frontend for some API application vs creating a bind mount for source code;
@@ -608,7 +608,7 @@ Before you apply changes made to a Compose configuration file, there is an oppor
608608
$ docker compose config
609609
```
610610

611-
When this command is run, Docker Compose reads the file `docker-compose.yml`, parses it into a data structure in memory, validates where possible, and prints back the reconstruction of that configuration file from its internal representation. If this isn't possible due to errors, Docker prints an error message instead.
611+
When this command is run, Docker Compose reads the file `compose.yaml`, parses it into a data structure in memory, validates where possible, and prints back the reconstruction of that configuration file from its internal representation. If this isn't possible due to errors, Docker prints an error message instead.
612612

613613
### Build and run the application using Docker Compose
614614

content/reference/compose-file/services.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ services:
400400
401401
configs:
402402
my_credentials_spec:
403-
file: ./my-credential-spec.json|
403+
file: ./my-credential-spec.json
404404
```
405405

406406
### `depends_on`

0 commit comments

Comments
 (0)