Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 927b334

Browse files
committed
Fix typos found across repository
Signed-off-by: Justas Brazauskas <brazauskasjustas@gmail.com>
1 parent f5e6b09 commit 927b334

File tree

117 files changed

+159
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+159
-159
lines changed

api/client/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (cli *DockerCli) CmdBuild(args ...string) error {
145145
// then make sure we send both files over to the daemon
146146
// because Dockerfile is, obviously, needed no matter what, and
147147
// .dockerignore is needed to know if either one needs to be
148-
// removed. The deamon will remove them for us, if needed, after it
148+
// removed. The daemon will remove them for us, if needed, after it
149149
// parses the Dockerfile. Ignore errors here, as they will have been
150150
// caught by ValidateContextDirectory above.
151151
var includes = []string{"."}

api/client/cp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func (cli *DockerCli) copyToContainer(srcPath, dstContainer, dstPath string, cpP
231231
// Ignore any error and assume that the parent directory of the destination
232232
// path exists, in which case the copy may still succeed. If there is any
233233
// type of conflict (e.g., non-directory overwriting an existing directory
234-
// or vice versia) the extraction will fail. If the destination simply did
234+
// or vice versa) the extraction will fail. If the destination simply did
235235
// not exist, but the parent directory does, the extraction will still
236236
// succeed.
237237
if err == nil {
@@ -266,7 +266,7 @@ func (cli *DockerCli) copyToContainer(srcPath, dstContainer, dstPath string, cpP
266266
// With the stat info about the local source as well as the
267267
// destination, we have enough information to know whether we need to
268268
// alter the archive that we upload so that when the server extracts
269-
// it to the specified directory in the container we get the disired
269+
// it to the specified directory in the container we get the desired
270270
// copy behavior.
271271

272272
// See comments in the implementation of `archive.PrepareArchiveCopy`

api/client/network.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (cli *DockerCli) CmdNetworkDisconnect(args ...string) error {
130130
return cli.client.NetworkDisconnect(cmd.Arg(0), cmd.Arg(1))
131131
}
132132

133-
// CmdNetworkLs lists all the netorks managed by docker daemon
133+
// CmdNetworkLs lists all the networks managed by docker daemon
134134
//
135135
// Usage: docker network ls [OPTIONS]
136136
func (cli *DockerCli) CmdNetworkLs(args ...string) error {
@@ -198,8 +198,8 @@ func (cli *DockerCli) CmdNetworkInspect(args ...string) error {
198198

199199
// Consolidates the ipam configuration as a group from different related configurations
200200
// user can configure network with multiple non-overlapping subnets and hence it is
201-
// possible to corelate the various related parameters and consolidate them.
202-
// consoidateIpam consolidates subnets, ip-ranges, gateways and auxilary addresses into
201+
// possible to correlate the various related parameters and consolidate them.
202+
// consoidateIpam consolidates subnets, ip-ranges, gateways and auxiliary addresses into
203203
// structured ipam data.
204204
func consolidateIpam(subnets, ranges, gateways []string, auxaddrs map[string]string) ([]network.IPAMConfig, error) {
205205
if len(subnets) < len(ranges) || len(subnets) < len(gateways) {

api/client/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (cli *DockerCli) CmdStart(args ...string) error {
100100
return err
101101
}
102102

103-
// 4. Wait for attachement to break.
103+
// 4. Wait for attachment to break.
104104
if c.Config.Tty && cli.isTerminalOut {
105105
if err := cli.monitorTtySize(containerID, false); err != nil {
106106
fmt.Fprintf(cli.err, "Error monitoring TTY size: %s\n", err)

api/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const (
2020
// Version of Current REST API
2121
Version version.Version = "1.22"
2222

23-
// MinVersion represents Minimun REST API version supported
23+
// MinVersion represents Minimum REST API version supported
2424
MinVersion version.Version = "1.12"
2525

2626
// DefaultDockerfileName is the Default filename with Docker commands, read by docker build

api/server/middleware.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func versionMiddleware(handler httputils.APIFunc) httputils.APIFunc {
139139

140140
// handleWithGlobalMiddlwares wraps the handler function for a request with
141141
// the server's global middlewares. The order of the middlewares is backwards,
142-
// meaning that the first in the list will be evaludated last.
142+
// meaning that the first in the list will be evaluated last.
143143
//
144144
// Example: handleWithGlobalMiddlewares(s.getContainersName)
145145
//

api/server/router/local/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ func (s *router) postBuild(ctx context.Context, w http.ResponseWriter, r *http.R
478478
func sanitizeRepoAndTags(names []string) ([]reference.Named, error) {
479479
var (
480480
repoAndTags []reference.Named
481-
// This map is used for deduplicating the "-t" paramter.
481+
// This map is used for deduplicating the "-t" parameter.
482482
uniqNames = make(map[string]struct{})
483483
)
484484
for _, repo := range names {

api/server/router/local/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (l localRoute) Path() string {
3535
return l.path
3636
}
3737

38-
// NewRoute initialies a new local route for the reouter
38+
// NewRoute initializes a new local router for the reouter
3939
func NewRoute(method, path string, handler httputils.APIFunc) dkrouter.Route {
4040
return localRoute{method, path, handler}
4141
}

api/types/stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type BlkioStatEntry struct {
6363
// BlkioStats stores All IO service stats for data read and write
6464
// TODO Windows: This can be factored out
6565
type BlkioStats struct {
66-
// number of bytes tranferred to and from the block device
66+
// number of bytes transferred to and from the block device
6767
IoServiceBytesRecursive []BlkioStatEntry `json:"io_service_bytes_recursive"`
6868
IoServicedRecursive []BlkioStatEntry `json:"io_serviced_recursive"`
6969
IoQueuedRecursive []BlkioStatEntry `json:"io_queue_recursive"`

builder/dockerfile/bflag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (fl *Flag) IsTrue() bool {
105105
// compile time error so it doesn't matter too much when we stop our
106106
// processing as long as we do stop it, so this allows the code
107107
// around AddXXX() to be just:
108-
// defFlag := AddString("desription", "")
108+
// defFlag := AddString("description", "")
109109
// w/o needing to add an if-statement around each one.
110110
func (bf *BFlags) Parse() error {
111111
// If there was an error while defining the possible flags

0 commit comments

Comments
 (0)