diff --git a/cli/app/backup.go b/cli/app/backup.go index 8bc1a7ba..9b2a4be7 100644 --- a/cli/app/backup.go +++ b/cli/app/backup.go @@ -23,7 +23,6 @@ import ( "github.com/docker/docker/api/types/filters" dockerClient "github.com/docker/docker/client" "github.com/docker/docker/pkg/archive" - "github.com/docker/docker/pkg/system" "github.com/klauspost/pgzip" "github.com/sirupsen/logrus" "github.com/urfave/cli" @@ -262,7 +261,7 @@ func runBackup(cl *dockerClient.Client, app config.App, serviceName string, bkCo } func copyToFile(outfile string, r io.Reader) error { - tmpFile, err := system.TempFileSequential(filepath.Dir(outfile), ".tar_temp") + tmpFile, err := os.CreateTemp(filepath.Dir(outfile), ".tar_temp") if err != nil { return err }