Skip to content

Commit 927b334

Browse files
committed
Fix typos found across repository
Signed-off-by: Justas Brazauskas <[email protected]>
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

+1-1
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

+2-2
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

+3-3
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

builder/dockerfile/dispatchers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ func arg(b *Builder, args []string, attributes map[string]bool, original string)
640640

641641
// If there is a default value associated with this arg then add it to the
642642
// b.buildArgs if one is not already passed to the builder. The args passed
643-
// to builder override the defaut value of 'arg'.
643+
// to builder override the default value of 'arg'.
644644
if _, ok := b.BuildArgs[name]; !ok && hasDefault {
645645
b.BuildArgs[name] = value
646646
}

builder/dockerfile/evaluator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// parser package for more information) that are yielded from the parser itself.
55
// Calling NewBuilder with the BuildOpts struct can be used to customize the
66
// experience for execution purposes only. Parsing is controlled in the parser
7-
// package, and this division of resposibility should be respected.
7+
// package, and this division of responsibility should be respected.
88
//
99
// Please see the jump table targets for the actual invocations, most of which
1010
// will call out to the functions in internals.go to deal with their tasks.

builder/dockerfile/parser/parser_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func TestTestData(t *testing.T) {
7070
}
7171

7272
if runtime.GOOS == "windows" {
73-
// CRLF --> CR to match Unix behaviour
73+
// CRLF --> CR to match Unix behavior
7474
content = bytes.Replace(content, []byte{'\x0d', '\x0a'}, []byte{'\x0a'}, -1)
7575
}
7676

cliconfig/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type ConfigFile struct {
7171
filename string // Note: not serialized - for internal use only
7272
}
7373

74-
// NewConfigFile initilizes an empty configuration file for the given filename 'fn'
74+
// NewConfigFile initializes an empty configuration file for the given filename 'fn'
7575
func NewConfigFile(fn string) *ConfigFile {
7676
return &ConfigFile{
7777
AuthConfigs: make(map[string]AuthConfig),

container/container.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ func (container *Container) AddMountPointWithVolume(destination string, vol volu
518518
}
519519
}
520520

521-
// IsDestinationMounted checkes whether a path is mounted on the container or not.
521+
// IsDestinationMounted checks whether a path is mounted on the container or not.
522522
func (container *Container) IsDestinationMounted(destination string) bool {
523523
return container.MountPoints[destination] != nil
524524
}

container/container_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (container *Container) IpcMounts() []execdriver.Mount {
4141
return nil
4242
}
4343

44-
// UnmountVolumes explicitely unmounts volumes from the container.
44+
// UnmountVolumes explicitly unmounts volumes from the container.
4545
func (container *Container) UnmountVolumes(forceSyscall bool) error {
4646
return nil
4747
}

container/monitor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (m *containerMonitor) ExitOnNext() {
121121
}
122122

123123
// Close closes the container's resources such as networking allocations and
124-
// unmounts the contatiner's root filesystem
124+
// unmounts the container's root filesystem
125125
func (m *containerMonitor) Close() error {
126126
// Cleanup networking and mounts
127127
m.supervisor.Cleanup(m.container)

contrib/download-frozen-image-v2.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ while [ $# -gt 0 ]; do
5656
layersFs=$(echo "$manifestJson" | jq --raw-output '.fsLayers | .[] | .blobSum')
5757

5858
IFS=$'\n'
59-
# bash v4 on Windows CI requires CRLF seperator
59+
# bash v4 on Windows CI requires CRLF separator
6060
if [ "$(go env GOHOSTOS)" = 'windows' ]; then
6161
major=$(echo ${BASH_VERSION%%[^0.9]} | cut -d. -f1)
6262
if [ "$major" -ge 4 ]; then
6363
IFS=$'\r\n'
6464
fi
65-
fi
65+
fi
6666
layers=( ${layersFs} )
6767
unset IFS
6868

daemon/archive.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
var ErrExtractPointNotDirectory = errors.New("extraction point is not a directory")
2121

2222
// ContainerCopy performs a deprecated operation of archiving the resource at
23-
// the specified path in the conatiner identified by the given name.
23+
// the specified path in the container identified by the given name.
2424
func (daemon *Daemon) ContainerCopy(name string, res string) (io.ReadCloser, error) {
2525
container, err := daemon.GetContainer(name)
2626
if err != nil {

daemon/create_windows.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ func (daemon *Daemon) createContainerPlatformSpecificSettings(container *contain
4949

5050
// FIXME Windows: This code block is present in the Linux version and
5151
// allows the contents to be copied to the container FS prior to it
52-
// being started. However, the function utilises the FollowSymLinkInScope
52+
// being started. However, the function utilizes the FollowSymLinkInScope
5353
// path which does not cope with Windows volume-style file paths. There
54-
// is a seperate effort to resolve this (@swernli), so this processing
54+
// is a separate effort to resolve this (@swernli), so this processing
5555
// is deferred for now. A case where this would be useful is when
5656
// a dockerfile includes a VOLUME statement, but something is created
5757
// in that directory during the dockerfile processing. What this means

daemon/debugtrap_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
func setupDumpStackTrap() {
1414
// Windows does not support signals like *nix systems. So instead of
1515
// trapping on SIGUSR1 to dump stacks, we wait on a Win32 event to be
16-
// signalled.
16+
// signaled.
1717
go func() {
1818
sa := syscall.SecurityAttributes{
1919
Length: 0,

daemon/execdriver/native/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func (d *Driver) setupMounts(container *configs.Config, c *execdriver.Command) e
284284
userMounts[m.Destination] = struct{}{}
285285
}
286286

287-
// Filter out mounts that are overriden by user supplied mounts
287+
// Filter out mounts that are overridden by user supplied mounts
288288
var defaultMounts []*configs.Mount
289289
_, mountDev := userMounts["/dev"]
290290
for _, m := range container.Mounts {

daemon/graphdriver/btrfs/version_none.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package btrfs
44

55
// TODO(vbatts) remove this work-around once supported linux distros are on
6-
// btrfs utililties of >= 3.16.1
6+
// btrfs utilities of >= 3.16.1
77

88
func btrfsBuildVersion() string {
99
return "-"

daemon/graphdriver/devmapper/deviceset.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ func (devices *DeviceSet) createRegisterDevice(hash string) (*devInfo, error) {
766766
if err := devicemapper.CreateDevice(devices.getPoolDevName(), deviceID); err != nil {
767767
if devicemapper.DeviceIDExists(err) {
768768
// Device ID already exists. This should not
769-
// happen. Now we have a mechianism to find
769+
// happen. Now we have a mechanism to find
770770
// a free device ID. So something is not right.
771771
// Give a warning and continue.
772772
logrus.Errorf("Device ID %d exists in pool but it is supposed to be unused", deviceID)
@@ -818,7 +818,7 @@ func (devices *DeviceSet) createRegisterSnapDevice(hash string, baseInfo *devInf
818818
if err := devicemapper.CreateSnapDevice(devices.getPoolDevName(), deviceID, baseInfo.Name(), baseInfo.DeviceID); err != nil {
819819
if devicemapper.DeviceIDExists(err) {
820820
// Device ID already exists. This should not
821-
// happen. Now we have a mechianism to find
821+
// happen. Now we have a mechanism to find
822822
// a free device ID. So something is not right.
823823
// Give a warning and continue.
824824
logrus.Errorf("Device ID %d exists in pool but it is supposed to be unused", deviceID)
@@ -1749,7 +1749,7 @@ func (devices *DeviceSet) markForDeferredDeletion(info *devInfo) error {
17491749

17501750
info.Deleted = true
17511751

1752-
// save device metadata to refelect deleted state.
1752+
// save device metadata to reflect deleted state.
17531753
if err := devices.saveMetadata(info); err != nil {
17541754
info.Deleted = false
17551755
return err
@@ -1759,7 +1759,7 @@ func (devices *DeviceSet) markForDeferredDeletion(info *devInfo) error {
17591759
return nil
17601760
}
17611761

1762-
// Should be caled with devices.Lock() held.
1762+
// Should be called with devices.Lock() held.
17631763
func (devices *DeviceSet) deleteTransaction(info *devInfo, syncDelete bool) error {
17641764
if err := devices.openTransaction(info.Hash, info.DeviceID); err != nil {
17651765
logrus.Debugf("Error opening transaction hash = %s deviceId = %d", "", info.DeviceID)
@@ -1805,7 +1805,7 @@ func (devices *DeviceSet) issueDiscard(info *devInfo) error {
18051805
// This is a workaround for the kernel not discarding block so
18061806
// on the thin pool when we remove a thinp device, so we do it
18071807
// manually.
1808-
// Even if device is deferred deleted, activate it and isue
1808+
// Even if device is deferred deleted, activate it and issue
18091809
// discards.
18101810
if err := devices.activateDeviceIfNeeded(info, true); err != nil {
18111811
return err
@@ -2131,7 +2131,7 @@ func (devices *DeviceSet) UnmountDevice(hash, mountPath string) error {
21312131
defer devices.Unlock()
21322132

21332133
// If there are running containers when daemon crashes, during daemon
2134-
// restarting, it will kill running contaienrs and will finally call
2134+
// restarting, it will kill running containers and will finally call
21352135
// Put() without calling Get(). So info.MountCount may become negative.
21362136
// if info.mountCount goes negative, we do the unmount and assign
21372137
// it to 0.

daemon/graphdriver/devmapper/devmapper_doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ package devmapper
1313
// * version number of the interface that they were
1414
// * compiled with.
1515
// *
16-
// * All recognised ioctl commands (ie. those that don't
16+
// * All recognized ioctl commands (ie. those that don't
1717
// * return -ENOTTY) fill out this field, even if the
1818
// * command failed.
1919
// */

daemon/graphdriver/devmapper/driver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (d *Driver) Get(id, mountLabel string) (string, error) {
177177

178178
idFile := path.Join(mp, "id")
179179
if _, err := os.Stat(idFile); err != nil && os.IsNotExist(err) {
180-
// Create an "id" file with the container/image id in it to help reconscruct this in case
180+
// Create an "id" file with the container/image id in it to help reconstruct this in case
181181
// of later problems
182182
if err := ioutil.WriteFile(idFile, []byte(id), 0600); err != nil {
183183
d.DeviceSet.UnmountDevice(id, mp)

daemon/graphdriver/driver.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ import (
1717
type FsMagic uint32
1818

1919
const (
20-
// FsMagicUnsupported is a predifined contant value other than a valid filesystem id.
20+
// FsMagicUnsupported is a predefined constant value other than a valid filesystem id.
2121
FsMagicUnsupported = FsMagic(0x00000000)
2222
)
2323

2424
var (
2525
// DefaultDriver if a storage driver is not specified.
2626
DefaultDriver string
27-
// All registred drivers
27+
// All registered drivers
2828
drivers map[string]InitFunc
2929

3030
// ErrNotSupported returned when driver is not supported.
@@ -120,7 +120,7 @@ func GetDriver(name, home string, options []string, uidMaps, gidMaps []idtools.I
120120
return nil, ErrNotSupported
121121
}
122122

123-
// getBuiltinDriver initalizes and returns the registered driver, but does not try to load from plugins
123+
// getBuiltinDriver initializes and returns the registered driver, but does not try to load from plugins
124124
func getBuiltinDriver(name, home string, options []string, uidMaps, gidMaps []idtools.IDMap) (Driver, error) {
125125
if initFunc, exists := drivers[name]; exists {
126126
return initFunc(filepath.Join(home, name), options, uidMaps, gidMaps)

daemon/graphdriver/overlay/overlay.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var (
3030
ErrApplyDiffFallback = fmt.Errorf("Fall back to normal ApplyDiff")
3131
)
3232

33-
// ApplyDiffProtoDriver wraps the ProtoDriver by extending the inteface with ApplyDiff method.
33+
// ApplyDiffProtoDriver wraps the ProtoDriver by extending the interface with ApplyDiff method.
3434
type ApplyDiffProtoDriver interface {
3535
graphdriver.ProtoDriver
3636
// ApplyDiff writes the diff to the archive for the given id and parent id.

daemon/graphdriver/zfs/zfs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func init() {
3131
graphdriver.Register("zfs", Init)
3232
}
3333

34-
// Logger returns a zfs logger implmentation.
34+
// Logger returns a zfs logger implementation.
3535
type Logger struct{}
3636

3737
// Log wraps log message from ZFS driver with a prefix '[zfs]'.

daemon/kill.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (daemon *Daemon) Kill(container *container.Container) error {
105105
return nil
106106
}
107107

108-
// killPossibleDeadProcess is a wrapper aroung killSig() suppressing "no such process" error.
108+
// killPossibleDeadProcess is a wrapper around killSig() suppressing "no such process" error.
109109
func (daemon *Daemon) killPossiblyDeadProcess(container *container.Container, sig int) error {
110110
err := daemon.killWithSignal(container, sig)
111111
if err == syscall.ESRCH {

daemon/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func includeContainerInList(container *container.Container, ctx *listContext) it
266266
return excludeContainer
267267
}
268268

269-
// Stop interation when the container arrives to the filter container
269+
// Stop iteration when the container arrives to the filter container
270270
if ctx.sinceFilter != nil {
271271
if container.ID == ctx.sinceFilter.ID {
272272
return stopIteration

daemon/logger/fluentd/fluentd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func New(ctx logger.Context) (logger.Logger, error) {
5454
}
5555
extra := ctx.ExtraAttributes(nil)
5656
logrus.Debugf("logging driver fluentd configured for container:%s, host:%s, port:%d, tag:%s, extra:%v.", ctx.ContainerID, host, port, tag, extra)
57-
// logger tries to recoonect 2**32 - 1 times
57+
// logger tries to reconnect 2**32 - 1 times
5858
// failed (and panic) after 204 years [ 1.5 ** (2**32 - 1) - 1 seconds]
5959
log, err := fluent.New(fluent.Config{FluentPort: port, FluentHost: host, RetryWait: 1000, MaxRetry: math.MaxInt32})
6060
if err != nil {

daemon/logger/jsonfilelog/read.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func followLogs(f *os.File, logWatcher *logger.LogWatcher, notifyRotate chan int
146146
// io.ErrUnexpectedEOF is returned from json.Decoder when there is
147147
// remaining data in the parser's buffer while an io.EOF occurs.
148148
// If the json logger writes a partial json log entry to the disk
149-
// while at the same time the decoder tries to decode it, the race codition happens.
149+
// while at the same time the decoder tries to decode it, the race condition happens.
150150
if err == io.ErrUnexpectedEOF && retries <= maxJSONDecodeRetry {
151151
reader := io.MultiReader(dec.Buffered(), f)
152152
dec = json.NewDecoder(reader)

0 commit comments

Comments
 (0)