diff --git a/daemon/containerd/image_list.go b/daemon/containerd/image_list.go index 2f49ffabe4cb5d55aa46b004c9df4fd7a9f3f209..96244e398187e2da9a4e531c6a6b496984c4d1b2 100644 --- a/daemon/containerd/image_list.go +++ b/daemon/containerd/image_list.go @@ -525,7 +525,7 @@ func getManifestPlatform(ctx context.Context, store content.Provider, manifestDe return platforms.Normalize(platform), nil } -// isImageManifests returns true if the manifest has any layer that is a known image layer. +// isImageManifest returns true if the manifest has any layer that is a known image layer. // Some manifests use the image media type for compatibility, even if they are not a real image. func isImageManifest(mfst v1.Manifest) bool { for _, l := range mfst.Layers { diff --git a/daemon/kill.go b/daemon/kill.go index 2d45fea0b85806ca60ddcf4ced10d3ddabfeb01f..420ea40b8db3178bff70ebb8593e3356f163e6b4 100644 --- a/daemon/kill.go +++ b/daemon/kill.go @@ -178,7 +178,7 @@ func (daemon *Daemon) Kill(container *containerpkg.Container) error { return nil } -// killPossibleDeadProcess is a wrapper around killSig() suppressing "no such process" error. +// killPossiblyDeadProcess is a wrapper around killSig() suppressing "no such process" error. func (daemon *Daemon) killPossiblyDeadProcess(container *containerpkg.Container, sig syscall.Signal) error { err := daemon.killWithSignal(container, sig) if errdefs.IsNotFound(err) { diff --git a/daemon/logger/journald/journald.go b/daemon/logger/journald/journald.go index 4d4e2c0019a22f34ed21718a7efbdb92ad9c571d..fb04a45eb5d6fdcee7e3633d05bc4a3797c41f60 100644 --- a/daemon/logger/journald/journald.go +++ b/daemon/logger/journald/journald.go @@ -76,7 +76,7 @@ func init() { } } -// sanitizeKeyMode returns the sanitized string so that it could be used in journald. +// sanitizeKeyMod returns the sanitized string so that it could be used in journald. // In journald log, there are special requirements for fields. // Fields must be composed of uppercase letters, numbers, and underscores, but must // not start with an underscore. diff --git a/daemon/logger/plugin.go b/daemon/logger/plugin.go index 8c155b0ddb46c9f59c0eaee6c9b97173ed5bfee1..354f08e1088a7a3eafe844219970644abe9aa20c 100644 --- a/daemon/logger/plugin.go +++ b/daemon/logger/plugin.go @@ -31,7 +31,7 @@ func RegisterPluginGetter(plugingetter getter.PluginGetter) { pluginGetter = plugingetter } -// GetDriver returns a logging driver by its name. +// getPlugin returns a logging driver by its name. // If the driver is empty, it looks for the local driver. func getPlugin(name string, mode int) (Creator, error) { p, err := pluginGetter.Get(name, extName, mode) diff --git a/daemon/logs.go b/daemon/logs.go index 567e3c7155aed23397a3b7629e0750a793376850..ef56b24e85009083100f69ae702600bbd3b370dc 100644 --- a/daemon/logs.go +++ b/daemon/logs.go @@ -173,7 +173,7 @@ func (daemon *Daemon) getLogger(container *container.Container) (l logger.Logger return } -// mergeLogConfig merges the daemon log config to the container's log config if the container's log driver is not specified. +// mergeAndVerifyLogConfig merges the daemon log config to the container's log config if the container's log driver is not specified. func (daemon *Daemon) mergeAndVerifyLogConfig(cfg *containertypes.LogConfig) error { if cfg.Type == "" { cfg.Type = daemon.defaultLogConfig.Type diff --git a/dockerversion/useragent.go b/dockerversion/useragent.go index 5e814388243a3f2466c9a10a2e85d2957b42582e..7fc3b69a75864f118245fb53d0f301dad9ef3e32 100644 --- a/dockerversion/useragent.go +++ b/dockerversion/useragent.go @@ -30,7 +30,7 @@ var ( daemonUA string ) -// getUserAgentFromContext returns the user-agent to use for requests made by +// getDaemonUserAgent returns the user-agent to use for requests made by // the daemon. // // It includes; diff --git a/integration/internal/build/build.go b/integration/internal/build/build.go index 9dbdd1241e99eac1e8709356124efebac4f61d39..0631a536052bf59ffc1923239f53c37c4a77d29c 100644 --- a/integration/internal/build/build.go +++ b/integration/internal/build/build.go @@ -27,7 +27,7 @@ func Do(ctx context.Context, t *testing.T, client client.APIClient, buildCtx *fa return img } -// GetImageIDFRommBody reads the image ID from the build response body. +// GetImageIDFromBody reads the image ID from the build response body. func GetImageIDFromBody(t *testing.T, body io.Reader) string { var ( jm jsonmessage.JSONMessage