From 8b85274d265815a4ed278bb664c22bb5e32ff237 Mon Sep 17 00:00:00 2001 From: Mathieu Champlon Date: Thu, 16 Sep 2021 15:46:27 +0200 Subject: [PATCH] Fix typo Signed-off-by: Mathieu Champlon --- cli/command/container/attach.go | 2 +- cli/command/container/run.go | 2 +- cli/command/container/signals.go | 2 +- cli/command/container/start.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/command/container/attach.go b/cli/command/container/attach.go index a9e604f31f..60e5da3b48 100644 --- a/cli/command/container/attach.go +++ b/cli/command/container/attach.go @@ -97,7 +97,7 @@ func runAttach(dockerCli command.Cli, opts *attachOptions) error { } if opts.proxy && !c.Config.Tty { - sigc := notfiyAllSignals() + sigc := notifyAllSignals() go ForwardAllSignals(ctx, dockerCli, opts.container, sigc) defer signal.StopCatch(sigc) } diff --git a/cli/command/container/run.go b/cli/command/container/run.go index 103ca83ff0..bc1fc929b3 100644 --- a/cli/command/container/run.go +++ b/cli/command/container/run.go @@ -131,7 +131,7 @@ func runContainer(dockerCli command.Cli, opts *runOptions, copts *containerOptio return runStartContainerErr(err) } if opts.sigProxy { - sigc := notfiyAllSignals() + sigc := notifyAllSignals() go ForwardAllSignals(ctx, dockerCli, createResponse.ID, sigc) defer signal.StopCatch(sigc) } diff --git a/cli/command/container/signals.go b/cli/command/container/signals.go index dbfd7f0339..b8b746df5e 100644 --- a/cli/command/container/signals.go +++ b/cli/command/container/signals.go @@ -54,7 +54,7 @@ func ForwardAllSignals(ctx context.Context, cli command.Cli, cid string, sigc <- } } -func notfiyAllSignals() chan os.Signal { +func notifyAllSignals() chan os.Signal { sigc := make(chan os.Signal, 128) gosignal.Notify(sigc) return sigc diff --git a/cli/command/container/start.go b/cli/command/container/start.go index f2d6351421..9a8d72fb3f 100644 --- a/cli/command/container/start.go +++ b/cli/command/container/start.go @@ -74,7 +74,7 @@ func runStart(dockerCli command.Cli, opts *startOptions) error { // We always use c.ID instead of container to maintain consistency during `docker start` if !c.Config.Tty { - sigc := notfiyAllSignals() + sigc := notifyAllSignals() go ForwardAllSignals(ctx, dockerCli, c.ID, sigc) defer signal.StopCatch(sigc) }