mirror of
https://github.com/docker/compose.git
synced 2026-08-28 04:18:05 +00:00
Allow non-interactive exec on ACI
If the request is for a non-interactive exec we don't attach the stdin when executing.
This commit is contained in:
parent
ffd815da64
commit
ef2d304762
8 changed files with 75 additions and 42 deletions
|
|
@ -22,7 +22,6 @@ import (
|
|||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/compose-spec/compose-go/cli"
|
||||
|
||||
|
|
@ -95,8 +94,8 @@ func (cs *containerService) Stop(ctx context.Context, containerName string, time
|
|||
return errors.New("not implemented")
|
||||
}
|
||||
|
||||
func (cs *containerService) Exec(ctx context.Context, name string, command string, reader io.Reader, writer io.Writer) error {
|
||||
fmt.Printf("Executing command %q on container %q", command, name)
|
||||
func (cs *containerService) Exec(ctx context.Context, name string, request containers.ExecRequest) error {
|
||||
fmt.Printf("Executing command %q on container %q", request.Command, name)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue