@@ -170,7 +170,11 @@ export class Install {
170
170
if ( this . rootless ) {
171
171
core . info ( `Downloading Docker rootless extras ${ version } from ${ this . source . channel } at download.docker.com` ) ;
172
172
const extrasFolder = await this . downloadStaticArchive ( 'docker-rootless-extras' , this . source ) ;
173
- fs . copyFileSync ( path . join ( extrasFolder , 'dockerd-rootless.sh' ) , path . join ( extractFolder , 'dockerd-rootless.sh' ) ) ;
173
+ fs . readdirSync ( extrasFolder ) . forEach ( file => {
174
+ const src = path . join ( extrasFolder , file ) ;
175
+ const dest = path . join ( extractFolder , file ) ;
176
+ fs . copyFileSync ( src , dest ) ;
177
+ } ) ;
174
178
}
175
179
break ;
176
180
}
@@ -492,6 +496,13 @@ EOF`,
492
496
throw new Error ( `Unsupported platform: ${ os . platform ( ) } ` ) ;
493
497
}
494
498
}
499
+
500
+ await core . group ( `Cleaning up toolDir` , async ( ) => {
501
+ if ( ! this . _toolDir ) {
502
+ return ;
503
+ }
504
+ fs . rmSync ( this . _toolDir , { recursive : true , force : true } ) ;
505
+ } ) ;
495
506
}
496
507
497
508
private async tearDownDarwin ( ) : Promise < void > {
@@ -541,6 +552,9 @@ EOF`,
541
552
await core . group ( 'Removing Docker context' , async ( ) => {
542
553
await Docker . exec ( [ 'context' , 'rm' , '-f' , this . contextName ] ) ;
543
554
} ) ;
555
+ await core . group ( 'Stopping Docker daemon service' , async ( ) => {
556
+ await Exec . exec ( 'powershell' , [ '-Command' , `Stop-Service -Name docker -Force` ] ) ;
557
+ } ) ;
544
558
}
545
559
546
560
private downloadURL ( component : 'docker' | 'docker-rootless-extras' , version : string , channel : string ) : string {
0 commit comments