Procházet zdrojové kódy

Fix misspell typos

Signed-off-by: nick <nicholasrusso@icloud.com>
nick před 9 roky
rodič
revize
7135afa79b

+ 1 - 1
api/client/utils.go

@@ -134,7 +134,7 @@ func CopyToFile(outfile string, r io.Reader) error {
 	return nil
 }
 
-// ForwardAllSignals forwards signals to the contianer
+// ForwardAllSignals forwards signals to the container
 // TODO: this can be unexported again once all container commands are under
 // api/client/container
 func (cli *DockerCli) ForwardAllSignals(ctx context.Context, cid string) chan os.Signal {

+ 2 - 2
daemon/cluster/executor/container/adapter.go

@@ -70,7 +70,7 @@ func (c *containerAdapter) pullImage(ctx context.Context) error {
 			}
 			return err
 		}
-		// TOOD(stevvooe): Report this status somewhere.
+		// TODO(stevvooe): Report this status somewhere.
 		logrus.Debugln("pull progress", m)
 	}
 	// if the final stream object contained an error, return it
@@ -126,7 +126,7 @@ func (c *containerAdapter) create(ctx context.Context, backend executorpkg.Backe
 		return err
 	}
 
-	// Docker daemon currently doesnt support multiple networks in container create
+	// Docker daemon currently doesn't support multiple networks in container create
 	// Connect to all other networks
 	nc := c.container.connectNetworkingConfig()
 

+ 1 - 1
daemon/cluster/executor/container/container.go

@@ -19,7 +19,7 @@ import (
 )
 
 const (
-	// Explictly use the kernel's default setting for CPU quota of 100ms.
+	// Explicitly use the kernel's default setting for CPU quota of 100ms.
 	// https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt
 	cpuQuotaPeriod = 100 * time.Millisecond
 

+ 1 - 1
daemon/cluster/provider/network.go

@@ -13,7 +13,7 @@ type NetworkCreateResponse struct {
 	ID string `json:"Id"`
 }
 
-// VirtualAddress represents a virtual adress.
+// VirtualAddress represents a virtual address.
 type VirtualAddress struct {
 	IPv4 string
 	IPv6 string

+ 1 - 1
daemon/oci_linux.go

@@ -459,7 +459,7 @@ func setMounts(daemon *Daemon, s *specs.Spec, c *container.Container, mounts []c
 		userMounts[m.Destination] = struct{}{}
 	}
 
-	// Filter out mounts that are overriden by user supplied mounts
+	// Filter out mounts that are overridden by user supplied mounts
 	var defaultMounts []specs.Mount
 	_, mountDev := userMounts["/dev"]
 	for _, m := range s.Mounts {

+ 4 - 4
integration-cli/docker_cli_daemon_test.go

@@ -2408,7 +2408,7 @@ func (s *DockerDaemonSuite) TestRunWithRuntimeFromConfigFile(c *check.C) {
 	out, err := s.d.Cmd("run", "--rm", "busybox", "ls")
 	c.Assert(err, check.IsNil, check.Commentf(out))
 
-	// Run with default runtime explicitely
+	// Run with default runtime explicitly
 	out, err = s.d.Cmd("run", "--rm", "--runtime=default", "busybox", "ls")
 	c.Assert(err, check.IsNil, check.Commentf(out))
 
@@ -2491,7 +2491,7 @@ func (s *DockerDaemonSuite) TestRunWithRuntimeFromConfigFile(c *check.C) {
 	c.Assert(err, check.NotNil, check.Commentf(out))
 	c.Assert(out, checker.Contains, "/usr/local/bin/vm-manager: no such file or directory")
 
-	// Run with default runtime explicitely
+	// Run with default runtime explicitly
 	out, err = s.d.Cmd("run", "--rm", "--runtime=default", "busybox", "ls")
 	c.Assert(err, check.IsNil, check.Commentf(out))
 }
@@ -2504,7 +2504,7 @@ func (s *DockerDaemonSuite) TestRunWithRuntimeFromCommandLine(c *check.C) {
 	out, err := s.d.Cmd("run", "--rm", "busybox", "ls")
 	c.Assert(err, check.IsNil, check.Commentf(out))
 
-	// Run with default runtime explicitely
+	// Run with default runtime explicitly
 	out, err = s.d.Cmd("run", "--rm", "--runtime=default", "busybox", "ls")
 	c.Assert(err, check.IsNil, check.Commentf(out))
 
@@ -2553,7 +2553,7 @@ func (s *DockerDaemonSuite) TestRunWithRuntimeFromCommandLine(c *check.C) {
 	c.Assert(err, check.NotNil, check.Commentf(out))
 	c.Assert(out, checker.Contains, "/usr/local/bin/vm-manager: no such file or directory")
 
-	// Run with default runtime explicitely
+	// Run with default runtime explicitly
 	out, err = s.d.Cmd("run", "--rm", "--runtime=default", "busybox", "ls")
 	c.Assert(err, check.IsNil, check.Commentf(out))
 }

+ 1 - 1
plugin/distribution/push.go

@@ -97,7 +97,7 @@ func Push(name string, rs registry.Service, metaHeader http.Header, authConfig *
 			return "", err
 		}
 		// The canonical descriptor is set the mediatype again, just in case.
-		// Dont touch the digest or the size here.
+		// Don't touch the digest or the size here.
 		desc.MediaType = mt
 		logrus.Debugf("pushed blob: %s %s", desc.MediaType, desc.Digest)
 		descs = append(descs, desc)