docker.exec takes context

This commit is contained in:
William Banfield
2022-12-01 11:17:03 -05:00
parent eb46fdc720
commit 9e4a24681c
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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...)...)
}