mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 14:34:17 +00:00
docker.exec takes context
This commit is contained in:
@@ -110,6 +110,6 @@ func ExecComposeVerbose(ctx context.Context, dir string, args ...string) error {
|
||||
}
|
||||
|
||||
// Exec runs a Docker command.
|
||||
func Exec(args ...string) error {
|
||||
return exec.Command(context.Background(), append([]string{"docker"}, args...)...)
|
||||
func Exec(ctx context.Context, args ...string) error {
|
||||
return exec.Command(ctx, append([]string{"docker"}, args...)...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user