Skip to content

Commit fa719f7

Browse files
chore(lint): Fixed 90-95% of Markdown lint violations across the repository
Signed-off-by: Brijeshthummar02 <[email protected]>
1 parent c7bf302 commit fa719f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+43
-87
lines changed

.github/SECURITY.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,4 @@ offer a paid security bounty program at this time.
4040
This project docs not provide long-term supported versions, and only the current
4141
release and `main` branch are actively maintained. Docker Compose v1, and the
4242
corresponding [v1 branch](https://github.com/docker/compose/tree/v1) reached
43-
EOL and are no longer supported.
44-
43+
EOL and are no longer supported.

BUILDING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ make test
3636
If you need to update a golden file simply do `go test ./... -test.update-golden`.
3737

3838
### End-to-end tests
39+
3940
To run e2e tests, the Compose CLI binary needs to be built. All the commands to run e2e tests propose a version
4041
with the prefix `build-and-e2e` to first build the CLI before executing tests.
4142

@@ -50,6 +51,7 @@ make e2e
5051
```
5152

5253
Or if you need to build the CLI, run:
54+
5355
```console
5456
make build-and-e2e
5557
```
@@ -63,6 +65,7 @@ make e2e-compose
6365
```
6466

6567
Or if you need to build the CLI, run:
68+
6669
```console
6770
make build-and-e2e-compose
6871
```
@@ -84,6 +87,7 @@ make build-and-e2e-compose-standalone
8487
## Releases
8588

8689
To create a new release:
90+
8791
* Check that the CI is green on the main branch for the commit you want to release
8892
* Run the release GitHub Actions workflow with a tag of form vx.y.z following existing tags.
8993

CONTRIBUTING.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ We also like to send gifts&mdash;if you're into Docker swag, make sure to let
3838
us know. We currently do not offer a paid security bounty program but are not
3939
ruling it out in the future.
4040

41-
4241
## Reporting other issues
4342

4443
A great way to contribute to the project is to send a detailed report when you
@@ -55,18 +54,18 @@ resolve the issue, please leave a comment.
5554

5655
When reporting issues, always include:
5756

58-
* The output of `docker version`.
59-
* The output of `docker context show`.
60-
* The output of `docker info`.
57+
- The output of `docker version`.
58+
- The output of `docker context show`.
59+
- The output of `docker info`.
6160

6261
Also, include the steps required to reproduce the problem if possible and
6362
applicable. This information will help us review and fix your issue faster.
6463
When sending lengthy log files, consider posting them as a gist
65-
(https://gist.github.com).
64+
(<https://gist.github.com>).
6665
Don't forget to remove sensitive data from your log files before posting (you
6766
can replace those parts with "REDACTED").
6867

69-
_Note:_
68+
*Note:*
7069
Maintainers might request additional information to diagnose an issue,
7170
if initial reporter doesn't answer within a reasonable delay (a few weeks),
7271
issue will be closed.
@@ -124,7 +123,6 @@ don't get discouraged!
124123
</tr>
125124
</table>
126125

127-
128126
### Conventions
129127

130128
Fork the repository and make changes on your fork in a feature branch:
@@ -267,25 +265,25 @@ We want to keep the Docker community awesome, growing and collaborative. We need
267265
your help to keep it that way. To help with this we've come up with some general
268266
guidelines for the community as a whole:
269267

270-
* Be nice: Be courteous, respectful and polite to fellow community members:
268+
- Be nice: Be courteous, respectful and polite to fellow community members:
271269
no regional, racial, gender or other abuse will be tolerated. We like
272270
nice people way better than mean ones!
273271

274-
* Encourage diversity and participation: Make everyone in our community feel
272+
- Encourage diversity and participation: Make everyone in our community feel
275273
welcome, regardless of their background and the extent of their
276274
contributions, and do everything possible to encourage participation in
277275
our community.
278276

279-
* Keep it legal: Basically, don't get us in trouble. Share only content that
277+
- Keep it legal: Basically, don't get us in trouble. Share only content that
280278
you own, do not share private or sensitive information, and don't break
281279
the law.
282280

283-
* Stay on topic: Make sure that you are posting to the correct channel and
281+
- Stay on topic: Make sure that you are posting to the correct channel and
284282
avoid off-topic discussions. Remember when you update an issue or respond
285283
to an email you are potentially sending it to a large number of people. Please
286284
consider this before you update. Also, remember that nobody likes spam.
287285

288-
* Don't send emails to the maintainers: There's no need to send emails to the
286+
- Don't send emails to the maintainers: There's no need to send emails to the
289287
maintainers to ask them to investigate an issue or to take a look at a
290288
pull request. Instead of sending an email, GitHub mentions should be
291289
used to ping maintainers to review a pull request, a proposal or an
@@ -314,7 +312,7 @@ The rules:
314312
Go](https://go.dev/doc/effective_go) and [Go Code Review
315313
Comments](https://go.dev/wiki/CodeReviewComments).
316314
4. Include code comments. Tell us the why, the history and the context.
317-
5. Document _all_ declarations and methods, even private ones. Declare
315+
5. Document *all* declarations and methods, even private ones. Declare
318316
expectations, caveats and anything else that may be important. If a type
319317
gets exported, having the comments already there will ensure it's ready.
320318
6. Variable name length should be proportional to its context and no longer.
@@ -329,7 +327,7 @@ The rules:
329327
part of a util package. Just leave it unexported and well-documented.
330328
9. All tests should run with `go test` and outside tooling should not be
331329
required. No, we don't need another unit testing framework. Assertion
332-
packages are acceptable if they provide _real_ incremental value.
330+
packages are acceptable if they provide *real* incremental value.
333331
10. Even though we call these "rules" above, they are actually just
334332
guidelines. Since you've read all the rules, you now know that.
335333

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Table of Contents
2+
23
- [Docker Compose v2](#docker-compose-v2)
34
- [Where to get Docker Compose](#where-to-get-docker-compose)
4-
+ [Windows and macOS](#windows-and-macos)
5-
+ [Linux](#linux)
5+
- [Windows and macOS](#windows-and-macos)
6+
- [Linux](#linux)
67
- [Quick Start](#quick-start)
78
- [Contributing](#contributing)
89
- [Legacy](#legacy)
10+
911
# Docker Compose v2
1012

1113
[![GitHub release](https://img.shields.io/github/v/release/docker/compose.svg?style=flat-square)](https://github.com/docker/compose/releases/latest)
@@ -40,16 +42,16 @@ Rename the relevant binary for your OS to `docker-compose` and copy it to `$HOME
4042

4143
Or copy it into one of these folders to install it system-wide:
4244

43-
* `/usr/local/lib/docker/cli-plugins` OR `/usr/local/libexec/docker/cli-plugins`
44-
* `/usr/lib/docker/cli-plugins` OR `/usr/libexec/docker/cli-plugins`
45+
- `/usr/local/lib/docker/cli-plugins` OR `/usr/local/libexec/docker/cli-plugins`
46+
- `/usr/lib/docker/cli-plugins` OR `/usr/libexec/docker/cli-plugins`
4547

4648
(might require making the downloaded file executable with `chmod +x`)
4749

48-
4950
Quick Start
5051
-----------
5152

5253
Using Docker Compose is a three-step process:
54+
5355
1. Define your app's environment with a `Dockerfile` so it can be
5456
reproduced anywhere.
5557
2. Define the services that make up your app in `compose.yaml` so

docs/reference/compose.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Define and run multi-container applications with Docker
4444
| [`wait`](compose_wait.md) | Block until containers of all (or specified) services stop. |
4545
| [`watch`](compose_watch.md) | Watch build context for service and rebuild/refresh containers when files are updated |
4646

47-
4847
### Options
4948

5049
| Name | Type | Default | Description |
@@ -61,23 +60,24 @@ Define and run multi-container applications with Docker
6160
| `--project-directory` | `string` | | Specify an alternate working directory<br>(default: the path of the, first specified, Compose file) |
6261
| `-p`, `--project-name` | `string` | | Project name |
6362

64-
6563
<!---MARKER_GEN_END-->
6664

6765
## Examples
6866

6967
### Use `-f` to specify the name and path of one or more Compose files
68+
7069
Use the `-f` flag to specify the location of a Compose [configuration file](/reference/compose-file/).
7170

7271
#### Specifying multiple Compose files
72+
7373
You can supply multiple `-f` configuration files. When you supply multiple files, Compose combines them into a single
7474
configuration. Compose builds the configuration in the order you supply the files. Subsequent files override and add
7575
to their predecessors.
7676

7777
For example, consider this command line:
7878

7979
```console
80-
$ docker compose -f docker-compose.yml -f docker-compose.admin.yml run backup_db
80+
docker compose -f docker-compose.yml -f docker-compose.admin.yml run backup_db
8181
```
8282

8383
The `docker-compose.yml` file might specify a `webapp` service.
@@ -91,6 +91,7 @@ services:
9191
volumes:
9292
- "/data"
9393
```
94+
9495
If the `docker-compose.admin.yml` also specifies this same service, any matching fields override the previous file.
9596
New values, add to the `webapp` service configuration.
9697

@@ -112,6 +113,7 @@ The `-f` flag is optional. If you don’t provide this flag on the command line,
112113
and its parent directories looking for a `compose.yaml` or `docker-compose.yaml` file.
113114

114115
#### Specifying a path to a single Compose file
116+
115117
You can use the `-f` flag to specify a path to a Compose file that is not located in the current directory, either
116118
from the command line or by setting up a `COMPOSE_FILE` environment variable in your shell or in an environment file.
117119

@@ -120,13 +122,14 @@ have a `compose.yaml` file in a directory called `sandbox/rails`. You can use a
120122
get the postgres image for the db service from anywhere by using the `-f` flag as follows:
121123

122124
```console
123-
$ docker compose -f ~/sandbox/rails/compose.yaml pull db
125+
docker compose -f ~/sandbox/rails/compose.yaml pull db
124126
```
125127

126128
### Use `-p` to specify a project name
127129

128130
Each configuration has a project name. Compose sets the project name using
129131
the following mechanisms, in order of precedence:
132+
130133
- The `-p` command line flag
131134
- The `COMPOSE_PROJECT_NAME` environment variable
132135
- The top level `name:` variable from the config file (or the last `name:`
@@ -187,6 +190,7 @@ in attached mode. Alternatively, you can also run `docker compose up --menu=fals
187190

188191
Use `--dry-run` flag to test a command without changing your application stack state.
189192
Dry Run mode shows you all the steps Compose applies when executing a command, for example:
193+
190194
```console
191195
$ docker compose --dry-run up --build -d
192196
[+] Pulling 1/1
@@ -203,6 +207,7 @@ $ docker compose --dry-run up --build -d
203207
✔ DRY-RUN MODE - Container nginx-golang-mysql-backend-1 Started 0.0s
204208
✔ DRY-RUN MODE - Container nginx-golang-mysql-proxy-1 Started Started
205209
```
210+
206211
From the example above, you can see that the first step is to pull the image defined by `db` service, then build the `backend` service.
207212
Next, the containers are created. The `db` service is started, and the `backend` and `proxy` wait until the `db` service is healthy before starting.
208213

docs/reference/compose_alpha.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@ Experimental commands
1010
| [`viz`](compose_alpha_viz.md) | EXPERIMENTAL - Generate a graphviz graph from your compose file |
1111
| [`watch`](compose_alpha_watch.md) | EXPERIMENTAL - Watch build context for service and rebuild/refresh containers when files are updated |
1212

13-
1413
### Options
1514

1615
| Name | Type | Default | Description |
1716
|:------------|:-----|:--------|:--------------------------------|
1817
| `--dry-run` | | | Execute command in dry run mode |
1918

20-
2119
<!---MARKER_GEN_END-->
22-

docs/reference/compose_alpha_dry-run.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
<!---MARKER_GEN_START-->
44
Dry run command allows you to test a command without applying changes
55

6-
76
<!---MARKER_GEN_END-->
8-

docs/reference/compose_alpha_generate.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ EXPERIMENTAL - Generate a Compose file from existing containers
1212
| `--name` | `string` | | Project name to set in the Compose file |
1313
| `--project-dir` | `string` | | Directory to use for the project |
1414

15-
1615
<!---MARKER_GEN_END-->
17-

docs/reference/compose_alpha_publish.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ Publish compose application
1313
| `--with-env` | `bool` | | Include environment variables in the published OCI artifact |
1414
| `-y`, `--y` | `bool` | | Assume "yes" as answer to all prompts |
1515

16-
1716
<!---MARKER_GEN_END-->
18-

docs/reference/compose_alpha_scale.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,4 @@ Scale services
1010
| `--dry-run` | | | Execute command in dry run mode |
1111
| `--no-deps` | | | Don't start linked services |
1212

13-
1413
<!---MARKER_GEN_END-->
15-

0 commit comments

Comments
 (0)