docker.exec takes context

This commit is contained in:
William Banfield
2022-11-30 17:50:27 -05:00
parent b2740d39d8
commit f0f98c8156
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...)...)
}