diff --git a/cmd/compose/run.go b/cmd/compose/run.go index 01438a857..f46f8d441 100644 --- a/cmd/compose/run.go +++ b/cmd/compose/run.go @@ -185,7 +185,7 @@ func runCommand(p *ProjectOptions, dockerCli command.Cli, backendOptions *Backen } } else if !cmd.Flags().Changed("no-TTY") && !cmd.Flags().Changed("interactive") && !dockerCli.In().IsTerminal() { // while `docker run` requires explicit `-it` flags, Compose enables interactive mode and TTY by default - // but when compose is used from a scripr has stdin piped from another command, we just can't + // but when compose is used from a script that has stdin piped from another command, we just can't // Here, we detect we run "by default" (user didn't passed explicit flags) and disable TTY allocation if // we don't have an actual terminal to attach to for interactive mode options.noTty = true diff --git a/pkg/compose/run.go b/pkg/compose/run.go index 99a8cea0a..e5a68fd04 100644 --- a/pkg/compose/run.go +++ b/pkg/compose/run.go @@ -38,7 +38,7 @@ func (s *composeService) RunOneOffContainer(ctx context.Context, project *types. return 0, err } - // remove cancellable context signal handler so we can forward signals to container without compose to exit + // remove cancellable context signal handler so we can forward signals to container without compose from exiting signal.Reset() sigc := make(chan os.Signal, 128) diff --git a/pkg/dryrun/dryrunclient.go b/pkg/dryrun/dryrunclient.go index 6f393cac8..6755ae96b 100644 --- a/pkg/dryrun/dryrunclient.go +++ b/pkg/dryrun/dryrunclient.go @@ -313,7 +313,7 @@ func (d *DryRunClient) ContainerExecStart(ctx context.Context, execID string, co return nil } -// Functions delegated to original APIClient (not used by Compose or not modifying the Compose stack +// Functions delegated to original APIClient (not used by Compose or not modifying the Compose stack) func (d *DryRunClient) ConfigList(ctx context.Context, options swarm.ConfigListOptions) ([]swarm.Config, error) { return d.apiClient.ConfigList(ctx, options)