update various "doc" links in code

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-08-01 13:38:03 +02:00
parent 2ab75a2461
commit 78ccee32b3
8 changed files with 8 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ import (
lncluster "github.com/moby/moby/v2/daemon/libnetwork/cluster" 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 { type Cluster interface {
ClusterStatus ClusterStatus
NetworkManager NetworkManager

View File

@@ -523,7 +523,7 @@ func (c *containerAdapter) logs(ctx context.Context, options api.LogSubscription
} }
// print since as this formatted string because the docker container // print since as this formatted string because the docker container
// logs interface expects it like this. // 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())) apiOptions.Since = fmt.Sprintf("%d.%09d", since.Unix(), int64(since.Nanosecond()))
} }

View File

@@ -1646,7 +1646,7 @@ func (daemon *Daemon) RawSysInfo() *sysinfo.SysInfo {
} }
// imageBackend is used to satisfy the [executorpkg.ImageBackend] and // 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. // interfaces.
type imageBackend struct { type imageBackend struct {
ImageService ImageService

View File

@@ -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}) img, err := i.GetImage(ctx, ref.String(), backend.GetImageOpts{Platform: platform})
// Note that this is a special case where GetImage returns both an image // 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 { if cerrdefs.IsNotFound(err) && img != nil {
po := streamformatter.NewJSONProgressOutput(outStream, false) po := streamformatter.NewJSONProgressOutput(outStream, false)
progress.Messagef(po, "", `WARNING: %s`, err.Error()) progress.Messagef(po, "", `WARNING: %s`, err.Error())

View File

@@ -56,7 +56,7 @@ func main() {
if _, ok := os.LookupEnv("DIND_CLIENT"); !ok && *joinPtr { 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, " + 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) log.G(context.TODO()).Infof("Connecting to %s:%d checking ready", *ipPtr, *portPtr)

View File

@@ -522,7 +522,7 @@ func removeInvalidNDots(options []string) []string {
return options[:n] return options[:n]
} }
// systemError implements [github.com/docker/docker/errdefs.ErrSystem]. // systemError implements [github.com/moby/moby/v2/errdefs.ErrSystem].
type systemError struct{ error } type systemError struct{ error }
func (systemError) System() {} func (systemError) System() {}

View File

@@ -52,7 +52,7 @@ type MountPoint struct {
Name string Name string
// Driver is the volume driver used to create the volume (if it is a volume) // Driver is the volume driver used to create the volume (if it is a volume)
Driver string Driver string
// Type of mount to use, see `Type<foo>` definitions in github.com/docker/docker/api/types/mount // Type of mount to use.
Type mounttypes.Type `json:",omitempty"` Type mounttypes.Type `json:",omitempty"`
// Volume is the volume providing data to this mountpoint. // Volume is the volume providing data to this mountpoint.
// This is nil unless `Type` is set to `TypeVolume` // This is nil unless `Type` is set to `TypeVolume`

View File

@@ -2,5 +2,5 @@ package transport
// VersionMimetype is the Content-Type the engine sends to plugins. // 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" const VersionMimetype = "application/vnd.docker.plugins.v1.2+json"