Browse code

Fix misspell typos

Signed-off-by: nick <nicholasrusso@icloud.com>

nick authored on 2016/06/20 01:53:31
Showing 7 changed files
... ...
@@ -134,7 +134,7 @@ func CopyToFile(outfile string, r io.Reader) error {
134 134
 	return nil
135 135
 }
136 136
 
137
-// ForwardAllSignals forwards signals to the contianer
137
+// ForwardAllSignals forwards signals to the container
138 138
 // TODO: this can be unexported again once all container commands are under
139 139
 // api/client/container
140 140
 func (cli *DockerCli) ForwardAllSignals(ctx context.Context, cid string) chan os.Signal {
... ...
@@ -70,7 +70,7 @@ func (c *containerAdapter) pullImage(ctx context.Context) error {
70 70
 			}
71 71
 			return err
72 72
 		}
73
-		// TOOD(stevvooe): Report this status somewhere.
73
+		// TODO(stevvooe): Report this status somewhere.
74 74
 		logrus.Debugln("pull progress", m)
75 75
 	}
76 76
 	// if the final stream object contained an error, return it
... ...
@@ -126,7 +126,7 @@ func (c *containerAdapter) create(ctx context.Context, backend executorpkg.Backe
126 126
 		return err
127 127
 	}
128 128
 
129
-	// Docker daemon currently doesnt support multiple networks in container create
129
+	// Docker daemon currently doesn't support multiple networks in container create
130 130
 	// Connect to all other networks
131 131
 	nc := c.container.connectNetworkingConfig()
132 132
 
... ...
@@ -19,7 +19,7 @@ import (
19 19
 )
20 20
 
21 21
 const (
22
-	// Explictly use the kernel's default setting for CPU quota of 100ms.
22
+	// Explicitly use the kernel's default setting for CPU quota of 100ms.
23 23
 	// https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt
24 24
 	cpuQuotaPeriod = 100 * time.Millisecond
25 25
 
... ...
@@ -13,7 +13,7 @@ type NetworkCreateResponse struct {
13 13
 	ID string `json:"Id"`
14 14
 }
15 15
 
16
-// VirtualAddress represents a virtual adress.
16
+// VirtualAddress represents a virtual address.
17 17
 type VirtualAddress struct {
18 18
 	IPv4 string
19 19
 	IPv6 string
... ...
@@ -459,7 +459,7 @@ func setMounts(daemon *Daemon, s *specs.Spec, c *container.Container, mounts []c
459 459
 		userMounts[m.Destination] = struct{}{}
460 460
 	}
461 461
 
462
-	// Filter out mounts that are overriden by user supplied mounts
462
+	// Filter out mounts that are overridden by user supplied mounts
463 463
 	var defaultMounts []specs.Mount
464 464
 	_, mountDev := userMounts["/dev"]
465 465
 	for _, m := range s.Mounts {
... ...
@@ -2408,7 +2408,7 @@ func (s *DockerDaemonSuite) TestRunWithRuntimeFromConfigFile(c *check.C) {
2408 2408
 	out, err := s.d.Cmd("run", "--rm", "busybox", "ls")
2409 2409
 	c.Assert(err, check.IsNil, check.Commentf(out))
2410 2410
 
2411
-	// Run with default runtime explicitely
2411
+	// Run with default runtime explicitly
2412 2412
 	out, err = s.d.Cmd("run", "--rm", "--runtime=default", "busybox", "ls")
2413 2413
 	c.Assert(err, check.IsNil, check.Commentf(out))
2414 2414
 
... ...
@@ -2491,7 +2491,7 @@ func (s *DockerDaemonSuite) TestRunWithRuntimeFromConfigFile(c *check.C) {
2491 2491
 	c.Assert(err, check.NotNil, check.Commentf(out))
2492 2492
 	c.Assert(out, checker.Contains, "/usr/local/bin/vm-manager: no such file or directory")
2493 2493
 
2494
-	// Run with default runtime explicitely
2494
+	// Run with default runtime explicitly
2495 2495
 	out, err = s.d.Cmd("run", "--rm", "--runtime=default", "busybox", "ls")
2496 2496
 	c.Assert(err, check.IsNil, check.Commentf(out))
2497 2497
 }
... ...
@@ -2504,7 +2504,7 @@ func (s *DockerDaemonSuite) TestRunWithRuntimeFromCommandLine(c *check.C) {
2504 2504
 	out, err := s.d.Cmd("run", "--rm", "busybox", "ls")
2505 2505
 	c.Assert(err, check.IsNil, check.Commentf(out))
2506 2506
 
2507
-	// Run with default runtime explicitely
2507
+	// Run with default runtime explicitly
2508 2508
 	out, err = s.d.Cmd("run", "--rm", "--runtime=default", "busybox", "ls")
2509 2509
 	c.Assert(err, check.IsNil, check.Commentf(out))
2510 2510
 
... ...
@@ -2553,7 +2553,7 @@ func (s *DockerDaemonSuite) TestRunWithRuntimeFromCommandLine(c *check.C) {
2553 2553
 	c.Assert(err, check.NotNil, check.Commentf(out))
2554 2554
 	c.Assert(out, checker.Contains, "/usr/local/bin/vm-manager: no such file or directory")
2555 2555
 
2556
-	// Run with default runtime explicitely
2556
+	// Run with default runtime explicitly
2557 2557
 	out, err = s.d.Cmd("run", "--rm", "--runtime=default", "busybox", "ls")
2558 2558
 	c.Assert(err, check.IsNil, check.Commentf(out))
2559 2559
 }
... ...
@@ -97,7 +97,7 @@ func Push(name string, rs registry.Service, metaHeader http.Header, authConfig *
97 97
 			return "", err
98 98
 		}
99 99
 		// The canonical descriptor is set the mediatype again, just in case.
100
-		// Dont touch the digest or the size here.
100
+		// Don't touch the digest or the size here.
101 101
 		desc.MediaType = mt
102 102
 		logrus.Debugf("pushed blob: %s %s", desc.MediaType, desc.Digest)
103 103
 		descs = append(descs, desc)