From 328de0b8d961864f4915e44d7e77029c46141a5b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 25 Feb 2021 12:11:50 +0100 Subject: [PATCH] Update documentation links - Using "/go/" redirects for some topics, which allows us to redirect to new locations if topics are moved around in the documentation. - Updated some old URLs to their new location. Signed-off-by: Sebastiaan van Stijn --- client/client.go | 2 +- contrib/dockerd-rootless-setuptool.sh | 6 +++--- contrib/dockerd-rootless.sh | 2 +- daemon/info.go | 2 +- docs/api/v1.25.yaml | 2 +- docs/api/v1.26.yaml | 2 +- docs/api/v1.27.yaml | 2 +- docs/api/v1.28.yaml | 2 +- docs/api/v1.29.yaml | 2 +- docs/api/v1.30.yaml | 2 +- docs/api/v1.31.yaml | 2 +- docs/api/v1.32.yaml | 2 +- docs/api/v1.33.yaml | 2 +- docs/api/v1.34.yaml | 2 +- docs/api/v1.35.yaml | 2 +- docs/api/v1.36.yaml | 2 +- docs/api/v1.37.yaml | 2 +- docs/api/v1.38.yaml | 2 +- docs/rootless.md | 2 +- pkg/authorization/authz.go | 2 +- 20 files changed, 22 insertions(+), 22 deletions(-) diff --git a/client/client.go b/client/client.go index 68064ca9c5..21edf1fa1f 100644 --- a/client/client.go +++ b/client/client.go @@ -2,7 +2,7 @@ Package client is a Go client for the Docker Engine API. For more information about the Engine API, see the documentation: -https://docs.docker.com/engine/reference/api/ +https://docs.docker.com/engine/api/ Usage diff --git a/contrib/dockerd-rootless-setuptool.sh b/contrib/dockerd-rootless-setuptool.sh index b9dcb4f925..66f2093e1a 100755 --- a/contrib/dockerd-rootless-setuptool.sh +++ b/contrib/dockerd-rootless-setuptool.sh @@ -4,7 +4,7 @@ # # Typical usage: dockerd-rootless-setuptool.sh install --force # -# Documentation: https://docs.docker.com/engine/security/rootless/ +# Documentation: https://docs.docker.com/go/rootless/ set -eu # utility functions @@ -290,7 +290,7 @@ install_systemd() { cat <<- EOT > "${unit_file}" [Unit] Description=Docker Application Container Engine (Rootless) - Documentation=https://docs.docker.com/engine/security/rootless/ + Documentation=https://docs.docker.com/go/rootless/ [Service] Environment=PATH=$BIN:/sbin:/usr/sbin:$PATH @@ -400,7 +400,7 @@ usage() { echo echo "A setup tool for Rootless Docker (${DOCKERD_ROOTLESS_SH})." echo - echo "Documentation: https://docs.docker.com/engine/security/rootless/" + echo "Documentation: https://docs.docker.com/go/rootless/" echo echo "Options:" echo " -f, --force Ignore rootful Docker (/var/run/docker.sock)" diff --git a/contrib/dockerd-rootless.sh b/contrib/dockerd-rootless.sh index c5c7db58c7..08ef9ba8ce 100755 --- a/contrib/dockerd-rootless.sh +++ b/contrib/dockerd-rootless.sh @@ -15,7 +15,7 @@ # * DOCKERD_ROOTLESS_ROOTLESSKIT_SLIRP4NETNS_SANDBOX=(auto|true|false): whether to protect slirp4netns with a dedicated mount namespace. Defaults to "auto". # * DOCKERD_ROOTLESS_ROOTLESSKIT_SLIRP4NETNS_SECCOMP=(auto|true|false): whether to protect slirp4netns with seccomp. Defaults to "auto". # -# See the documentation for the further information: https://docs.docker.com/engine/security/rootless/ +# See the documentation for the further information: https://docs.docker.com/go/rootless/ set -e -x case "$1" in diff --git a/daemon/info.go b/daemon/info.go index 2d4151a991..59c3af92fe 100644 --- a/daemon/info.go +++ b/daemon/info.go @@ -209,7 +209,7 @@ func (daemon *Daemon) fillAPIInfo(v *types.Info) { const warn string = ` Access to the remote API is equivalent to root access on the host. Refer to the 'Docker daemon attack surface' section in the documentation for - more information: https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface` + more information: https://docs.docker.com/go/attack-surface/` cfg := daemon.configStore for _, host := range cfg.Hosts { diff --git a/docs/api/v1.25.yaml b/docs/api/v1.25.yaml index 8b3e0e08fc..95d17656c3 100644 --- a/docs/api/v1.25.yaml +++ b/docs/api/v1.25.yaml @@ -105,7 +105,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.26.yaml b/docs/api/v1.26.yaml index 5e3f8bdf7f..43d48a71c2 100644 --- a/docs/api/v1.26.yaml +++ b/docs/api/v1.26.yaml @@ -106,7 +106,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.27.yaml b/docs/api/v1.27.yaml index 65e7251ac2..db8e3fd800 100644 --- a/docs/api/v1.27.yaml +++ b/docs/api/v1.27.yaml @@ -107,7 +107,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.28.yaml b/docs/api/v1.28.yaml index 69e3c39c99..3292bd4fac 100644 --- a/docs/api/v1.28.yaml +++ b/docs/api/v1.28.yaml @@ -108,7 +108,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.29.yaml b/docs/api/v1.29.yaml index d019c75354..aa1d34a572 100644 --- a/docs/api/v1.29.yaml +++ b/docs/api/v1.29.yaml @@ -109,7 +109,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.30.yaml b/docs/api/v1.30.yaml index a361ca0c71..ebb7c49d99 100644 --- a/docs/api/v1.30.yaml +++ b/docs/api/v1.30.yaml @@ -110,7 +110,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.31.yaml b/docs/api/v1.31.yaml index f6eaf9ac5b..753bc350da 100644 --- a/docs/api/v1.31.yaml +++ b/docs/api/v1.31.yaml @@ -111,7 +111,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.32.yaml b/docs/api/v1.32.yaml index b909f36543..14918780bf 100644 --- a/docs/api/v1.32.yaml +++ b/docs/api/v1.32.yaml @@ -112,7 +112,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.33.yaml b/docs/api/v1.33.yaml index 13f737ba98..5c1923f867 100644 --- a/docs/api/v1.33.yaml +++ b/docs/api/v1.33.yaml @@ -113,7 +113,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.34.yaml b/docs/api/v1.34.yaml index fc98dbdf0d..16f2c7e009 100644 --- a/docs/api/v1.34.yaml +++ b/docs/api/v1.34.yaml @@ -116,7 +116,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.35.yaml b/docs/api/v1.35.yaml index 8dc3ed2bc3..75bda52d4b 100644 --- a/docs/api/v1.35.yaml +++ b/docs/api/v1.35.yaml @@ -104,7 +104,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.36.yaml b/docs/api/v1.36.yaml index bc60911b8a..cc523f4714 100644 --- a/docs/api/v1.36.yaml +++ b/docs/api/v1.36.yaml @@ -104,7 +104,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.37.yaml b/docs/api/v1.37.yaml index 2fb988957e..ce0d154fe8 100644 --- a/docs/api/v1.37.yaml +++ b/docs/api/v1.37.yaml @@ -104,7 +104,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/api/v1.38.yaml b/docs/api/v1.38.yaml index 7104e52347..4a2c6b1045 100644 --- a/docs/api/v1.38.yaml +++ b/docs/api/v1.38.yaml @@ -104,7 +104,7 @@ tags: - name: "Network" x-displayName: "Networks" description: | - Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/engine/userguide/networking/) for more information. + Networks are user-defined networks that containers can be attached to. See the [networking documentation](https://docs.docker.com/network/) for more information. - name: "Volume" x-displayName: "Volumes" description: | diff --git a/docs/rootless.md b/docs/rootless.md index 181ed16b0e..4eada9d03e 100644 --- a/docs/rootless.md +++ b/docs/rootless.md @@ -1,3 +1,3 @@ -Moved to https://docs.docker.com/engine/security/rootless/ +Moved to https://docs.docker.com/go/rootless/ diff --git a/pkg/authorization/authz.go b/pkg/authorization/authz.go index a1edbcd89d..590ac8dddd 100644 --- a/pkg/authorization/authz.go +++ b/pkg/authorization/authz.go @@ -21,7 +21,7 @@ const maxBodySize = 1048576 // 1MB // Authenticate Request: // Call authZ plugins with current REST request and AuthN response // Request contains full HTTP packet sent to the docker daemon -// https://docs.docker.com/engine/reference/api/ +// https://docs.docker.com/engine/api/ // // Authenticate Response: // Call authZ plugins with full info about current REST request, REST response and AuthN response