Skip to content

Commit 694d1a0

Browse files
authored
Merge pull request #6815 from luojiyin1987/fix-typos
Fix various typos in code and documentation
2 parents 4e5bc68 + 681f156 commit 694d1a0

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

cli-plugins/manager/error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func (e *pluginError) Unwrap() error {
2828
return e.cause
2929
}
3030

31-
// MarshalText marshalls the pluginError into a textual form.
31+
// MarshalText marshals the pluginError into a textual form.
3232
func (e *pluginError) MarshalText() (text []byte, err error) {
3333
return []byte(e.cause.Error()), nil
3434
}

cli-plugins/manager/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func ListPlugins(dockerCli config.Provider, rootcmd *cobra.Command) ([]Plugin, e
172172
}
173173

174174
// PluginRunCommand returns an [os/exec.Cmd] which when [os/exec.Cmd.Run] will execute the named plugin.
175-
// The rootcmd argument is referenced to determine the set of builtin commands in order to detect conficts.
175+
// The rootcmd argument is referenced to determine the set of builtin commands in order to detect conflicts.
176176
// The error returned satisfies the [errdefs.IsNotFound] predicate if no plugin was found or if the first candidate plugin was invalid somehow.
177177
func PluginRunCommand(dockerCli config.Provider, name string, rootcmd *cobra.Command) (*exec.Cmd, error) {
178178
// This uses the full original args, not the args which may

cli-plugins/manager/manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func TestListPluginCandidatesEmpty(t *testing.T) {
8989
// Regression test for https://github.com/docker/cli/issues/5643.
9090
// Check that inaccessible directories that come before accessible ones are ignored
9191
// and do not prevent the latter from being processed.
92-
func TestListPluginCandidatesInaccesibleDir(t *testing.T) {
92+
func TestListPluginCandidatesInaccessibleDir(t *testing.T) {
9393
dir := fs.NewDir(t, t.Name(),
9494
fs.WithDir("no-perm", fs.WithMode(0)),
9595
fs.WithDir("plugins",

cli-plugins/socket/socket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (pl *PluginServer) Addr() net.Addr {
9393
// Close ensures that the server is no longer accepting new connections and
9494
// closes all existing connections. Existing connections will receive [io.EOF].
9595
//
96-
// The error value is that of the underlying [net.Listner.Close] call.
96+
// The error value is that of the underlying [net.Listener.Close] call.
9797
func (pl *PluginServer) Close() error {
9898
if pl == nil {
9999
return nil

cli-plugins/socket/socket_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func TestPluginServer(t *testing.T) {
4747
select {
4848
case err := <-done:
4949
if !errors.Is(err, io.EOF) {
50-
t.Fatalf("exepcted EOF error, got: %v", err)
50+
t.Fatalf("expected EOF error, got: %v", err)
5151
}
5252
case <-time.After(10 * time.Millisecond):
5353
}

docs/reference/commandline/stack_ps.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,14 @@ also shows the non-truncated task IDs, and error-messages, as can be seen below:
189189
$ docker stack ps --no-trunc voting
190190

191191
ID NAME IMAGE NODE DESIRED STATE CURREN STATE ERROR PORTS
192-
xim5bcqtgk1bxqz91jzo4a1s5 voting_worker.1 dockersamples/examplevotingapp_worker:latest@sha256:3e4ddf59c15f432280a2c0679c4fc5a2ee5a797023c8ef0d3baf7b1385e9fed node2 Running Runnin 32 minutes ago
193-
q7yik0ks1in6kv32gg6y6yjf7 voting_result.1 dockersamples/examplevotingapp_result:before@sha256:83b56996e930c292a6ae5187fda84dd6568a19d97cdb933720be15c757b7463 node1 Running Runnin 32 minutes ago
194-
rx5yo0866nfxc58zf4irsss6n voting_vote.1 dockersamples/examplevotingapp_vote:before@sha256:8e64b182c87de902f2b72321c89b4af4e2b942d76d0b772532ff27ec4c6ebf6 node3 Running Runnin 32 minutes ago
195-
tz6j82jnwrx7n2offljp3mn03 voting_db.1 postgres:9.4@sha256:6046af499eae34d2074c0b53f9a8b404716d415e4a03e68bc1d2f8064f2b027 node1 Running Runnin 32 minutes ago
196-
w48spazhbmxcmbjfi54gs7x90 voting_redis.1 redis:alpine@sha256:9cd405cd1ec1410eaab064a1383d0d8854d1ef74a54e1e4a92fb4ec7bdc3ee7 node2 Running Runnin 32 minutes ago
197-
6jj1m02freg1n3z9n1evrzsbl voting_visualizer.1 dockersamples/visualizer:stable@sha256:f924ad66c8e94b10baaf7bdb9cd491ef4e982a1d048a56a17e02bf5945401e5 node1 Running Runnin 32 minutes ago
198-
kqgdmededccbhz2wuc0e9hx7g voting_vote.2 dockersamples/examplevotingapp_vote:before@sha256:8e64b182c87de902f2b72321c89b4af4e2b942d76d0b772532ff27ec4c6ebf6 node2 Running Runnin 32 minutes ago
199-
t72q3z038jehe1wbh9gdum076 voting_redis.2 redis:alpine@sha256:9cd405cd1ec1410eaab064a1383d0d8854d1ef74a54e1e4a92fb4ec7bdc3ee7 node3 Running Runnin 32 minutes ago
192+
xim5bcqtgk1bxqz91jzo4a1s5 voting_worker.1 dockersamples/examplevotingapp_worker:latest@sha256:3e4ddf59c15f432280a2c0679c4fc5a2ee5a797023c8ef0d3baf7b1385e9fed node2 Running Running 32 minutes ago
193+
q7yik0ks1in6kv32gg6y6yjf7 voting_result.1 dockersamples/examplevotingapp_result:before@sha256:83b56996e930c292a6ae5187fda84dd6568a19d97cdb933720be15c757b7463 node1 Running Running 32 minutes ago
194+
rx5yo0866nfxc58zf4irsss6n voting_vote.1 dockersamples/examplevotingapp_vote:before@sha256:8e64b182c87de902f2b72321c89b4af4e2b942d76d0b772532ff27ec4c6ebf6 node3 Running Running 32 minutes ago
195+
tz6j82jnwrx7n2offljp3mn03 voting_db.1 postgres:9.4@sha256:6046af499eae34d2074c0b53f9a8b404716d415e4a03e68bc1d2f8064f2b027 node1 Running Running 32 minutes ago
196+
w48spazhbmxcmbjfi54gs7x90 voting_redis.1 redis:alpine@sha256:9cd405cd1ec1410eaab064a1383d0d8854d1ef74a54e1e4a92fb4ec7bdc3ee7 node2 Running Running 32 minutes ago
197+
6jj1m02freg1n3z9n1evrzsbl voting_visualizer.1 dockersamples/visualizer:stable@sha256:f924ad66c8e94b10baaf7bdb9cd491ef4e982a1d048a56a17e02bf5945401e5 node1 Running Running 32 minutes ago
198+
kqgdmededccbhz2wuc0e9hx7g voting_vote.2 dockersamples/examplevotingapp_vote:before@sha256:8e64b182c87de902f2b72321c89b4af4e2b942d76d0b772532ff27ec4c6ebf6 node2 Running Running 32 minutes ago
199+
t72q3z038jehe1wbh9gdum076 voting_redis.2 redis:alpine@sha256:9cd405cd1ec1410eaab064a1383d0d8854d1ef74a54e1e4a92fb4ec7bdc3ee7 node3 Running Running 32 minutes ago
200200
```
201201

202202
### <a name="quiet"></a> Only display task IDs (-q, --quiet)

man/src/image/ls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Repository entries separated by a colon for all images:
8686

8787
docker image ls --format "{{.ID}}: {{.Repository}}"
8888
77af4d6b9913: <none>
89-
b6fa739cedf5: committ
89+
b6fa739cedf5: commit
9090
78a85c484bad: ipbabble
9191
30557a29d5ab: docker
9292
5ed6274db6ce: <none>
@@ -100,7 +100,7 @@ To list all images with their repository and tag in a table format you can use:
100100
docker image ls --format "table {{.ID}}\t{{.Repository}}\t{{.Tag}}"
101101
IMAGE ID REPOSITORY TAG
102102
77af4d6b9913 <none> <none>
103-
b6fa739cedf5 committ latest
103+
b6fa739cedf5 commit latest
104104
78a85c484bad ipbabble <none>
105105
30557a29d5ab docker latest
106106
5ed6274db6ce <none> <none>

0 commit comments

Comments
 (0)