Skip to content

Commit

Permalink
chore(lint): Fixed 90-95% of Markdown lint violations across the repo…
Browse files Browse the repository at this point in the history
…sitory
  • Loading branch information
Brijeshthummar02 committed Feb 26, 2025
1 parent c7bf302 commit bf39fcb
Show file tree
Hide file tree
Showing 42 changed files with 43 additions and 87 deletions.
3 changes: 1 addition & 2 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ offer a paid security bounty program at this time.
This project docs not provide long-term supported versions, and only the current
release and `main` branch are actively maintained. Docker Compose v1, and the
corresponding [v1 branch](https://github.com/docker/compose/tree/v1) reached
EOL and are no longer supported.

EOL and are no longer supported.
4 changes: 4 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ make test
If you need to update a golden file simply do `go test ./... -test.update-golden`.

### End-to-end tests

To run e2e tests, the Compose CLI binary needs to be built. All the commands to run e2e tests propose a version
with the prefix `build-and-e2e` to first build the CLI before executing tests.

Expand All @@ -50,6 +51,7 @@ make e2e
```

Or if you need to build the CLI, run:

```console
make build-and-e2e
```
Expand All @@ -63,6 +65,7 @@ make e2e-compose
```

Or if you need to build the CLI, run:

```console
make build-and-e2e-compose
```
Expand All @@ -84,6 +87,7 @@ make build-and-e2e-compose-standalone
## Releases

To create a new release:

* Check that the CI is green on the main branch for the commit you want to release
* Run the release GitHub Actions workflow with a tag of form vx.y.z following existing tags.

Expand Down
26 changes: 12 additions & 14 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ We also like to send gifts—if you're into Docker swag, make sure to let
us know. We currently do not offer a paid security bounty program but are not
ruling it out in the future.


## Reporting other issues

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

When reporting issues, always include:

* The output of `docker version`.
* The output of `docker context show`.
* The output of `docker info`.
- The output of `docker version`.
- The output of `docker context show`.
- The output of `docker info`.

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

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


### Conventions

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

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

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

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

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

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

Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Table of Contents

- [Docker Compose v2](#docker-compose-v2)
- [Where to get Docker Compose](#where-to-get-docker-compose)
+ [Windows and macOS](#windows-and-macos)
+ [Linux](#linux)
- [Windows and macOS](#windows-and-macos)
- [Linux](#linux)
- [Quick Start](#quick-start)
- [Contributing](#contributing)
- [Legacy](#legacy)

# Docker Compose v2

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

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

* `/usr/local/lib/docker/cli-plugins` OR `/usr/local/libexec/docker/cli-plugins`
* `/usr/lib/docker/cli-plugins` OR `/usr/libexec/docker/cli-plugins`
- `/usr/local/lib/docker/cli-plugins` OR `/usr/local/libexec/docker/cli-plugins`
- `/usr/lib/docker/cli-plugins` OR `/usr/libexec/docker/cli-plugins`

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


Quick Start
-----------

Using Docker Compose is a three-step process:

1. Define your app's environment with a `Dockerfile` so it can be
reproduced anywhere.
2. Define the services that make up your app in `compose.yaml` so
Expand Down
13 changes: 9 additions & 4 deletions docs/reference/compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ Define and run multi-container applications with Docker
| [`wait`](compose_wait.md) | Block until containers of all (or specified) services stop. |
| [`watch`](compose_watch.md) | Watch build context for service and rebuild/refresh containers when files are updated |


### Options

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


<!---MARKER_GEN_END-->

## Examples

### Use `-f` to specify the name and path of one or more Compose files

Use the `-f` flag to specify the location of a Compose [configuration file](/reference/compose-file/).

#### Specifying multiple Compose files

You can supply multiple `-f` configuration files. When you supply multiple files, Compose combines them into a single
configuration. Compose builds the configuration in the order you supply the files. Subsequent files override and add
to their predecessors.

For example, consider this command line:

```console
$ docker compose -f docker-compose.yml -f docker-compose.admin.yml run backup_db
docker compose -f docker-compose.yml -f docker-compose.admin.yml run backup_db
```

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

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

#### Specifying a path to a single Compose file

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

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

```console
$ docker compose -f ~/sandbox/rails/compose.yaml pull db
docker compose -f ~/sandbox/rails/compose.yaml pull db
```

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

Each configuration has a project name. Compose sets the project name using
the following mechanisms, in order of precedence:

- The `-p` command line flag
- The `COMPOSE_PROJECT_NAME` environment variable
- The top level `name:` variable from the config file (or the last `name:`
Expand Down Expand Up @@ -187,6 +190,7 @@ in attached mode. Alternatively, you can also run `docker compose up --menu=fals

Use `--dry-run` flag to test a command without changing your application stack state.
Dry Run mode shows you all the steps Compose applies when executing a command, for example:

```console
$ docker compose --dry-run up --build -d
[+] Pulling 1/1
Expand All @@ -203,6 +207,7 @@ $ docker compose --dry-run up --build -d
✔ DRY-RUN MODE - Container nginx-golang-mysql-backend-1 Started 0.0s
✔ DRY-RUN MODE - Container nginx-golang-mysql-proxy-1 Started Started
```

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.
Next, the containers are created. The `db` service is started, and the `backend` and `proxy` wait until the `db` service is healthy before starting.

Expand Down
3 changes: 0 additions & 3 deletions docs/reference/compose_alpha.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ Experimental commands
| [`viz`](compose_alpha_viz.md) | EXPERIMENTAL - Generate a graphviz graph from your compose file |
| [`watch`](compose_alpha_watch.md) | EXPERIMENTAL - Watch build context for service and rebuild/refresh containers when files are updated |


### Options

| Name | Type | Default | Description |
|:------------|:-----|:--------|:--------------------------------|
| `--dry-run` | | | Execute command in dry run mode |


<!---MARKER_GEN_END-->

2 changes: 0 additions & 2 deletions docs/reference/compose_alpha_dry-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
<!---MARKER_GEN_START-->
Dry run command allows you to test a command without applying changes


<!---MARKER_GEN_END-->

2 changes: 0 additions & 2 deletions docs/reference/compose_alpha_generate.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ EXPERIMENTAL - Generate a Compose file from existing containers
| `--name` | `string` | | Project name to set in the Compose file |
| `--project-dir` | `string` | | Directory to use for the project |


<!---MARKER_GEN_END-->

2 changes: 0 additions & 2 deletions docs/reference/compose_alpha_publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ Publish compose application
| `--with-env` | `bool` | | Include environment variables in the published OCI artifact |
| `-y`, `--y` | `bool` | | Assume "yes" as answer to all prompts |


<!---MARKER_GEN_END-->

2 changes: 0 additions & 2 deletions docs/reference/compose_alpha_scale.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ Scale services
| `--dry-run` | | | Execute command in dry run mode |
| `--no-deps` | | | Don't start linked services |


<!---MARKER_GEN_END-->

2 changes: 0 additions & 2 deletions docs/reference/compose_alpha_viz.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ EXPERIMENTAL - Generate a graphviz graph from your compose file
| `--ports` | `bool` | | Include service's exposed ports in output graph |
| `--spaces` | `bool` | | If given, space character ' ' will be used to indent,<br>otherwise tab character '\t' will be used |


<!---MARKER_GEN_END-->

2 changes: 0 additions & 2 deletions docs/reference/compose_alpha_watch.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ Watch build context for service and rebuild/refresh containers when files are up
| `--no-up` | | | Do not build & start services before watching |
| `--quiet` | | | hide build output |


<!---MARKER_GEN_END-->

1 change: 0 additions & 1 deletion docs/reference/compose_attach.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ Attach local standard input, output, and error streams to a service's running co
| `--no-stdin` | `bool` | | Do not attach STDIN |
| `--sig-proxy` | `bool` | `true` | Proxy all received signals to the process |


<!---MARKER_GEN_END-->
1 change: 0 additions & 1 deletion docs/reference/compose_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ run `docker compose build` to rebuild it.
| `--ssh` | `string` | | Set SSH authentications used when building service images. (use 'default' for using your default SSH Agent) |
| `--with-dependencies` | `bool` | | Also build dependencies (transitively) |


<!---MARKER_GEN_END-->

## Description
Expand Down
2 changes: 0 additions & 2 deletions docs/reference/compose_commit.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ Create a new image from a service container's changes
| `-m`, `--message` | `string` | | Commit message |
| `-p`, `--pause` | `bool` | `true` | Pause container during commit |


<!---MARKER_GEN_END-->

1 change: 0 additions & 1 deletion docs/reference/compose_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ the canonical format.
| `--variables` | `bool` | | Print model variables and default values. |
| `--volumes` | `bool` | | Print the volume names, one per line. |


<!---MARKER_GEN_END-->

## Description
Expand Down
2 changes: 0 additions & 2 deletions docs/reference/compose_cp.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ Copy files/folders between a service container and the local filesystem
| `-L`, `--follow-link` | `bool` | | Always follow symbol link in SRC_PATH |
| `--index` | `int` | `0` | Index of the container if service has multiple replicas |


<!---MARKER_GEN_END-->

2 changes: 0 additions & 2 deletions docs/reference/compose_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ Creates containers for a service
| `--scale` | `stringArray` | | Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present. |
| `-y`, `--y` | `bool` | | Assume "yes" as answer to all prompts and run non-interactively |


<!---MARKER_GEN_END-->

1 change: 0 additions & 1 deletion docs/reference/compose_down.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ named volumes.
| `-t`, `--timeout` | `int` | `0` | Specify a shutdown timeout in seconds |
| `-v`, `--volumes` | `bool` | | Remove named volumes declared in the "volumes" section of the Compose file and anonymous volumes attached to containers |


<!---MARKER_GEN_END-->

## Description
Expand Down
1 change: 0 additions & 1 deletion docs/reference/compose_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ The events that can be received using this can be seen [here](/reference/cli/doc
| `--dry-run` | `bool` | | Execute command in dry run mode |
| `--json` | `bool` | | Output events as a stream of json objects |


<!---MARKER_GEN_END-->

## Description
Expand Down
1 change: 0 additions & 1 deletion docs/reference/compose_exec.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ you can use a command such as `docker compose exec web sh` to get an interactive
| `-u`, `--user` | `string` | | Run the command as this user |
| `-w`, `--workdir` | `string` | | Path to workdir directory for this command |


<!---MARKER_GEN_END-->

## Description
Expand Down
2 changes: 0 additions & 2 deletions docs/reference/compose_images.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@ List images used by the created containers
| `--format` | `string` | `table` | Format the output. Values: [table \| json] |
| `-q`, `--quiet` | `bool` | | Only display IDs |


<!---MARKER_GEN_END-->

Loading

0 comments on commit bf39fcb

Please sign in to comment.