From 78ccee32b3dc4c33b0f12dcff9c44619bb647370 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 1 Aug 2025 13:38:03 +0200 Subject: [PATCH] update various "doc" links in code Signed-off-by: Sebastiaan van Stijn --- daemon/cluster.go | 2 +- daemon/cluster/executor/container/adapter.go | 2 +- daemon/daemon.go | 2 +- daemon/images/image_pull.go | 2 +- daemon/libnetwork/cmd/diagnostic/main.go | 2 +- daemon/libnetwork/internal/resolvconf/resolvconf.go | 2 +- daemon/volume/mounts/mounts.go | 2 +- pkg/plugins/transport/mimetype.go | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/daemon/cluster.go b/daemon/cluster.go index 776f4c7ed2..e98e5174a6 100644 --- a/daemon/cluster.go +++ b/daemon/cluster.go @@ -6,7 +6,7 @@ import ( lncluster "github.com/moby/moby/v2/daemon/libnetwork/cluster" ) -// Cluster is the interface for github.com/docker/docker/daemon/cluster.(*Cluster). +// Cluster is the interface for [github.com/moby/moby/v2/daemon/cluster.Cluster]. type Cluster interface { ClusterStatus NetworkManager diff --git a/daemon/cluster/executor/container/adapter.go b/daemon/cluster/executor/container/adapter.go index ebea497525..a6eba1cda4 100644 --- a/daemon/cluster/executor/container/adapter.go +++ b/daemon/cluster/executor/container/adapter.go @@ -523,7 +523,7 @@ func (c *containerAdapter) logs(ctx context.Context, options api.LogSubscription } // print since as this formatted string because the docker container // logs interface expects it like this. - // see github.com/docker/docker/api/types/time.ParseTimestamps + // see [github.com/moby/moby/api/types/time.ParseTimestamps] apiOptions.Since = fmt.Sprintf("%d.%09d", since.Unix(), int64(since.Nanosecond())) } diff --git a/daemon/daemon.go b/daemon/daemon.go index c6ffd369eb..4f7ad50aa6 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -1646,7 +1646,7 @@ func (daemon *Daemon) RawSysInfo() *sysinfo.SysInfo { } // imageBackend is used to satisfy the [executorpkg.ImageBackend] and -// [github.com/docker/docker/api/server/router/distribution.Backend] +// [github.com/moby/moby/v2/daemon/server/router/distribution.Backend] // interfaces. type imageBackend struct { ImageService diff --git a/daemon/images/image_pull.go b/daemon/images/image_pull.go index d03d3cc913..d044bd0ff9 100644 --- a/daemon/images/image_pull.go +++ b/daemon/images/image_pull.go @@ -42,7 +42,7 @@ func (i *ImageService) PullImage(ctx context.Context, ref reference.Named, platf img, err := i.GetImage(ctx, ref.String(), backend.GetImageOpts{Platform: platform}) // Note that this is a special case where GetImage returns both an image - // and an error: https://github.com/docker/docker/blob/v20.10.7/daemon/images/image.go#L175-L183 + // and an error: https://github.com/moby/moby/blob/v28.3.3/daemon/images/image.go#L186-L193 if cerrdefs.IsNotFound(err) && img != nil { po := streamformatter.NewJSONProgressOutput(outStream, false) progress.Messagef(po, "", `WARNING: %s`, err.Error()) diff --git a/daemon/libnetwork/cmd/diagnostic/main.go b/daemon/libnetwork/cmd/diagnostic/main.go index 41839446dd..0ecccbb0ca 100644 --- a/daemon/libnetwork/cmd/diagnostic/main.go +++ b/daemon/libnetwork/cmd/diagnostic/main.go @@ -56,7 +56,7 @@ func main() { if _, ok := os.LookupEnv("DIND_CLIENT"); !ok && *joinPtr { log.G(context.TODO()).Fatal("you are not using the client in docker in docker mode, the use of the -a flag can be disruptive, " + - "please remove it (doc:https://github.com/docker/docker/libnetwork/blob/master/cmd/diagnostic/README.md)") + "please remove it (doc:https://github.com/moby/moby/blob/master/daemon/libnetwork/cmd/diagnostic/README.md)") } log.G(context.TODO()).Infof("Connecting to %s:%d checking ready", *ipPtr, *portPtr) diff --git a/daemon/libnetwork/internal/resolvconf/resolvconf.go b/daemon/libnetwork/internal/resolvconf/resolvconf.go index f73d5872b5..1df28ae0f2 100644 --- a/daemon/libnetwork/internal/resolvconf/resolvconf.go +++ b/daemon/libnetwork/internal/resolvconf/resolvconf.go @@ -522,7 +522,7 @@ func removeInvalidNDots(options []string) []string { return options[:n] } -// systemError implements [github.com/docker/docker/errdefs.ErrSystem]. +// systemError implements [github.com/moby/moby/v2/errdefs.ErrSystem]. type systemError struct{ error } func (systemError) System() {} diff --git a/daemon/volume/mounts/mounts.go b/daemon/volume/mounts/mounts.go index 562137eacb..9747252ccd 100644 --- a/daemon/volume/mounts/mounts.go +++ b/daemon/volume/mounts/mounts.go @@ -52,7 +52,7 @@ type MountPoint struct { Name string // Driver is the volume driver used to create the volume (if it is a volume) Driver string - // Type of mount to use, see `Type` definitions in github.com/docker/docker/api/types/mount + // Type of mount to use. Type mounttypes.Type `json:",omitempty"` // Volume is the volume providing data to this mountpoint. // This is nil unless `Type` is set to `TypeVolume` diff --git a/pkg/plugins/transport/mimetype.go b/pkg/plugins/transport/mimetype.go index c1b0bfa781..5c2dc7c802 100644 --- a/pkg/plugins/transport/mimetype.go +++ b/pkg/plugins/transport/mimetype.go @@ -2,5 +2,5 @@ package transport // VersionMimetype is the Content-Type the engine sends to plugins. // -// For convenience, there is an alias in [github.com/docker/docker/pkg/plugins.VersionMimetype]. +// For convenience, there is an alias in [github.com/moby/moby/v2/pkg/plugins.VersionMimetype]. const VersionMimetype = "application/vnd.docker.plugins.v1.2+json"