Skip to content

Commit 393d3f6

Browse files
committed
Add rel="noopener" to external links
See https://web.dev/external-anchors-use-rel-noopener/ Using noopener, as that addresses the security issue. "noreferer" blocks the REFERER header, which may still be useful for some target URLs. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent b753eb0 commit 393d3f6

Some content is hidden

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

66 files changed

+237
-238
lines changed

_includes/cli.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88

99
{% if controller_data.min_api_version %}
1010

11-
<a href="/engine/api/v{{ controller_data.min_api_version }}/" target="_blank" class="_"><span class="badge badge-info" data-toggle="tooltip" data-placement="right" title="Open the {{ controller_data.min_api_version }} API reference (in a new window)">API {{ controller_data.min_api_version }}+</span></a>&nbsp;
11+
<a href="/engine/api/v{{ controller_data.min_api_version }}/" target="_blank" rel="noopener" class="_"><span class="badge badge-info" data-toggle="tooltip" data-placement="right" title="Open the {{ controller_data.min_api_version }} API reference (in a new window)">API {{ controller_data.min_api_version }}+</span></a>&nbsp;
1212
The client and daemon API must both be at least
13-
<a href="/engine/api/v{{ controller_data.min_api_version }}/" target="_blank" class="_">{{ controller_data.min_api_version }}</a>
13+
<a href="/engine/api/v{{ controller_data.min_api_version }}/" target="_blank" rel="noopener" class="_">{{ controller_data.min_api_version }}</a>
1414
to use this command. Use the `docker version` command on the client to check
1515
your client and daemon API versions.
1616

1717
{% endif %}
1818

1919
{% if controller_data.deprecated %}
2020

21-
> This command is [deprecated](/engine/deprecated/){: target="_blank" class="_"}.
21+
> This command is [deprecated](/engine/deprecated/){: target="_blank" rel="noopener" class="_"}.
2222
>
2323
> It may be removed in a future Docker version.
2424
{: .warning }
@@ -29,7 +29,7 @@ your client and daemon API versions.
2929

3030
> This command is only available on Docker Enterprise Edition.
3131
>
32-
> Learn more about [Docker Enterprise products](/ee/supported-platforms/){: target="_blank" class="_"}.
32+
> Learn more about [Docker Enterprise products](/ee/supported-platforms/){: target="_blank" rel="noopener" class="_"}.
3333
{: .important }
3434

3535
{% endif %}
@@ -115,10 +115,10 @@ For example uses of this command, refer to the [examples section](#examples) bel
115115
</thead>
116116
<tbody>
117117
{% for option in alloptions %}
118-
{% capture deprecated-badge %}{% if option.deprecated %}<a href="/engine/deprecated/" target="_blank" class="_"><span class="badge badge-danger" data-toggle="tooltip" title="Read the deprecation reference (in a new window).">deprecated</span></a>{% endif %}{% endcapture %}
119-
{% capture experimental-daemon-badge %}{% if option.experimental %}<a href="/engine/reference/commandline/dockerd/#daemon-configuration-file" target="_blank" class="_"><span class="badge badge-warning" data-toggle="tooltip" title="Read about experimental daemon options (in a new window).">experimental (daemon)</span></a>{% endif %}{% endcapture %}
120-
{% capture experimental-cli-badge %}{% if option.experimentalcli %}<a href="/engine/reference/commandline/cli/#configuration-files" target="_blank" class="_"><span class="badge badge-warning" data-toggle="tooltip" title="Read about experimental CLI options (in a new window).">experimental (CLI)</span></a>{% endif %}{% endcapture %}
121-
{% capture min-api %}{% if option.min_api_version %}<a href="/engine/api/v{{ option.min_api_version }}/" target="_blank" class="_"><span class="badge badge-info" data-toggle="tooltip" ttitle="Open the {{ controller_data.min_api_version }} API reference (in a new window)">API {{ option.min_api_version }}+</span></a>{% endif %}{%endcapture%}
118+
{% capture deprecated-badge %}{% if option.deprecated %}<a href="/engine/deprecated/" target="_blank" rel="noopener" class="_"><span class="badge badge-danger" data-toggle="tooltip" title="Read the deprecation reference (in a new window).">deprecated</span></a>{% endif %}{% endcapture %}
119+
{% capture experimental-daemon-badge %}{% if option.experimental %}<a href="/engine/reference/commandline/dockerd/#daemon-configuration-file" target="_blank" rel="noopener" class="_"><span class="badge badge-warning" data-toggle="tooltip" title="Read about experimental daemon options (in a new window).">experimental (daemon)</span></a>{% endif %}{% endcapture %}
120+
{% capture experimental-cli-badge %}{% if option.experimentalcli %}<a href="/engine/reference/commandline/cli/#configuration-files" target="_blank" rel="noopener" class="_"><span class="badge badge-warning" data-toggle="tooltip" title="Read about experimental CLI options (in a new window).">experimental (CLI)</span></a>{% endif %}{% endcapture %}
121+
{% capture min-api %}{% if option.min_api_version %}<a href="/engine/api/v{{ option.min_api_version }}/" target="_blank" rel="noopener" class="_"><span class="badge badge-info" data-toggle="tooltip" ttitle="Open the {{ controller_data.min_api_version }} API reference (in a new window)">API {{ option.min_api_version }}+</span></a>{% endif %}{%endcapture%}
122122
{% capture flag-orchestrator %}{% if option.swarm %}<span class="badge badge-info" data-toggle="tooltip" title="This option works for the Swarm orchestrator.">Swarm</span>{% endif %}{% if option.kubernetes %}<span class="badge badge-info" data-toggle="tooltip" title="This option works for the Kubernetes orchestrator.">Kubernetes</span>{% endif %}{% endcapture %}
123123
{% capture all-badges %}{{ deprecated-badge }}{{ experimental-daemon-badge }}{{ experimental-cli-badge }}{{ min-api }}{{ flag-orchestrator }}{% endcapture %}
124124
{% assign defaults-to-skip = "[],map[],false,0,0s,default,'',\"\"" | split: ',' %}

_includes/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
</div>
4848
<div class="col-xs-12 col-sm-3 col-md-3">
4949
<ul class="footer_links">
50-
<li><b><a href="https://www.docker.com/company" target="_blank">Company</a></b></li>
50+
<li><b><a href="https://www.docker.com/company" target="_blank" rel="noopener">Company</a></b></li>
5151
<li><a href="https://www.docker.com/company">About Us</a></li>
52-
<li><a href="https://www.docker.com/blog/" target="_blank">Blog</a></li>
52+
<li><a href="https://www.docker.com/blog/" target="_blank" rel="noopener">Blog</a></li>
5353
<li><a href="https://www.docker.com/customers">Customers</a></li>
5454
<li><a href="https://www.docker.com/partners">Partners</a></li>
5555
<li><a href="https://www.docker.com/company/newsroom">Newsroom</a></li>

_layouts/archive-redirect.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h1>{{ page.prod_title }}</h1>
88
<p>You are viewing an archive branch of the
99
<a href="https://docs.docker.com/">Docker documentation</a>, but
1010
{{ prod_title }} documentation is not published in the current archive.
11-
<a href="https://docs.docker.com/{{ page.prod_url }}/" target="_blank">Go to https://docs.docker.com/{{ page.prod_url }}/</a>
11+
<a href="https://docs.docker.com/{{ page.prod_url }}/" target="_blank" rel="noopener">Go to https://docs.docker.com/{{ page.prod_url }}/</a>
1212
in a new tab.</p>
1313
</body>
1414
</html>

compose/compose-file/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ the service's task containers.
516516
because they are mounted in a temporary filesystem, so if you set the writable
517517
bit, it is ignored. The executable bit can be set. If you aren't familiar with
518518
UNIX file permission modes, you may find this
519-
[permissions calculator](http://permissions-calculator.org/){: target="_blank" class="_" }
519+
[permissions calculator](http://permissions-calculator.org/){: target="_blank" rel="noopener" class="_" }
520520
useful.
521521

522522
The following example sets the name of `my_config` to `redis_config` within the
@@ -902,7 +902,7 @@ services or containers in a swarm.
902902
on non swarm deployments, use
903903
[Compose file format version 2 CPU, memory, and other resource options](compose-file-v2.md#cpu-and-other-resources).
904904
If you have further questions, refer to the discussion on the GitHub
905-
issue [docker/compose/4513](https://github.com/docker/compose/issues/4513){: target="_blank" class="_"}.
905+
issue [docker/compose/4513](https://github.com/docker/compose/issues/4513){: target="_blank" rel="noopener" class="_"}.
906906
{: .important}
907907

908908
##### Out Of Memory Exceptions (OOME)
@@ -1773,7 +1773,7 @@ the service's task containers.
17731773
in a temporary filesystem, so if you set the writable bit, it is ignored. The
17741774
executable bit can be set. If you aren't familiar with UNIX file permission
17751775
modes, you may find this
1776-
[permissions calculator](http://permissions-calculator.org/){: target="_blank" class="_" }
1776+
[permissions calculator](http://permissions-calculator.org/){: target="_blank" rel="noopener" class="_" }
17771777
useful.
17781778

17791779
The following example sets name of the `my_secret` to `redis_secret` within the

compose/django.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ and a `docker-compose.yml` file. (You can use either a `.yml` or `.yaml` extensi
9191
>
9292
> This uses the build in development server to run your application
9393
> on port 8000. Do not use this in a production environment. For more
94-
> information, see [Django documentation](https://docs.djangoproject.com/en/3.1/intro/tutorial01/#the-development-server){: target="_blank" class="_”}.
94+
> information, see [Django documentation](https://docs.djangoproject.com/en/3.1/intro/tutorial01/#the-development-server){: target="_blank" rel="noopener" class="_”}.
9595

9696
10. Save and close the `docker-compose.yml` file.
9797

compose/install.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ have Docker Engine installed either locally or remote, depending on your setup.
1616
included as part of those desktop installs.
1717

1818
- On Linux systems, first install the
19-
[Docker Engine](../engine/install/index.md#server){: target="_blank" class="_"}
19+
[Docker Engine](../engine/install/index.md#server){: target="_blank" rel="noopener" class="_"}
2020
for your OS as described on the Get Docker page, then come back here for
2121
instructions on installing Compose on
2222
Linux systems.
@@ -35,7 +35,7 @@ Python package manager or installing Compose as a container.
3535
> (**v{{site.compose_version}}**) of Compose. To install a different version of
3636
> Compose, replace the given release number with the one that you want. Compose
3737
> releases are also listed and available for direct download on the
38-
> [Compose repository release page on GitHub](https://github.com/docker/compose/releases){:target="_blank" class="_"}.
38+
> [Compose repository release page on GitHub](https://github.com/docker/compose/releases){:target="_blank" rel="noopener" class="_"}.
3939
> To install a **pre-release** of Compose, refer to the [install pre-release builds](#install-pre-release-builds)
4040
> section.
4141
@@ -119,7 +119,7 @@ on Microsoft Windows Server and want to install Docker Compose.
119119
### Install Compose on Linux systems
120120
121121
On Linux, you can download the Docker Compose binary from the
122-
[Compose repository release page on GitHub](https://github.com/docker/compose/releases){:target="_blank" class="_"}.
122+
[Compose repository release page on GitHub](https://github.com/docker/compose/releases){:target="_blank" rel="noopener" class="_"}.
123123
Follow the instructions from the link, which involve running the `curl` command
124124
in your terminal to download the binaries. These step-by-step instructions are
125125
also included below.
@@ -216,12 +216,12 @@ sudo chmod +x /usr/local/bin/docker-compose
216216
## Install pre-release builds
217217

218218
If you're interested in trying out a pre-release build, you can download release
219-
candidates from the [Compose repository release page on GitHub](https://github.com/docker/compose/releases){: target="_blank" class="_"}.
219+
candidates from the [Compose repository release page on GitHub](https://github.com/docker/compose/releases){: target="_blank" rel="noopener" class="_"}.
220220
Follow the instructions from the link, which involves running the `curl` command
221221
in your terminal to download the binaries.
222222
223223
Pre-releases built from the "master" branch are also available for download at
224-
[https://dl.bintray.com/docker-compose/master/](https://dl.bintray.com/docker-compose/master/){: target="_blank" class="_"}.
224+
[https://dl.bintray.com/docker-compose/master/](https://dl.bintray.com/docker-compose/master/){: target="_blank" rel="noopener" class="_"}.
225225
226226
> Pre-release builds allow you to try out new features before they are released,
227227
> but may be less stable.

config/containers/logging/gcplogs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ redirect_from:
77
---
88

99
The Google Cloud Logging driver sends container logs to
10-
[Google Cloud Logging](https://cloud.google.com/logging/docs/){: target="_blank" class="_" }
10+
[Google Cloud Logging](https://cloud.google.com/logging/docs/){: target="_blank" rel="noopener" class="_" }
1111
Logging.
1212

1313
## Usage
@@ -43,11 +43,11 @@ This log driver does not implement a reader so it is incompatible with
4343

4444
If Docker detects that it is running in a Google Cloud Project, it discovers
4545
configuration from the
46-
[instance metadata service](https://cloud.google.com/compute/docs/metadata){: target="_blank" class="_"}.
46+
[instance metadata service](https://cloud.google.com/compute/docs/metadata){: target="_blank" rel="noopener" class="_"}.
4747
Otherwise, the user must specify
4848
which project to log to using the `--gcp-project` log option and Docker
4949
attempts to obtain credentials from the
50-
[Google Application Default Credential](https://developers.google.com/identity/protocols/application-default-credentials){: target="_blank" class="_"}.
50+
[Google Application Default Credential](https://developers.google.com/identity/protocols/application-default-credentials){: target="_blank" rel="noopener" class="_"}.
5151
The `--gcp-project` flag takes precedence over information discovered from the
5252
metadata server so a Docker daemon running in a Google Cloud Project can be
5353
overridden to log to a different Google Cloud Project using `--gcp-project`.

config/containers/resource_constraints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ number on the daemon or a container, or by setting `--oom-kill-disable` on a
4848
container.
4949

5050
For more information about the Linux kernel's OOM management, see
51-
[Out of Memory Management](https://www.kernel.org/doc/gorman/html/understand/understand016.html){: target="_blank" class="_" }.
51+
[Out of Memory Management](https://www.kernel.org/doc/gorman/html/understand/understand016.html){: target="_blank" rel="noopener" class="_" }.
5252

5353
You can mitigate the risk of system instability due to OOME by:
5454

config/daemon/prometheus.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,5 +288,5 @@ level.
288288

289289
## Next steps
290290

291-
- Read the [Prometheus documentation](https://prometheus.io/docs/introduction/overview/){: target="_blank" class="_" }
292-
- Set up some [alerts](https://prometheus.io/docs/alerting/overview/){: target="_blank" class="_" }
291+
- Read the [Prometheus documentation](https://prometheus.io/docs/introduction/overview/){: target="_blank" rel="noopener" class="_" }
292+
- Set up some [alerts](https://prometheus.io/docs/alerting/overview/){: target="_blank" rel="noopener" class="_" }

desktop/enterprise/admin/install/mac.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This page contains information about the system requirements and specific instru
1010

1111
[Download Docker Desktop Enterprise for Mac](https://download.docker.com/mac/enterprise/Docker.pkg){: .button .outline-btn}
1212

13-
> **Note:** By downloading DDE, you agree to the terms of the [Docker Software End User License Agreement](https://www.docker.com/legal/docker-software-end-user-license-agreement){: target="_blank" class="_"} and the [Docker Data Processing Agreement (DPA)](https://www.docker.com/legal/data-processing-agreement){: target="_blank" class="_"}.
13+
> **Note:** By downloading DDE, you agree to the terms of the [Docker Software End User License Agreement](https://www.docker.com/legal/docker-software-end-user-license-agreement){: target="_blank" rel="noopener" class="_"} and the [Docker Data Processing Agreement (DPA)](https://www.docker.com/legal/data-processing-agreement){: target="_blank" rel="noopener" class="_"}.
1414
1515
## System requirements
1616

0 commit comments

Comments
 (0)