Skip to content

Commit 54e0f74

Browse files
committed
docker/install: Stop docker service on Windows
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
1 parent 15a9f92 commit 54e0f74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/docker/install.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,9 @@ EOF`,
552552
await core.group('Removing Docker context', async () => {
553553
await Docker.exec(['context', 'rm', '-f', this.contextName]);
554554
});
555+
await core.group('Stopping Docker daemon service', async () => {
556+
await Exec.exec('powershell', ['-Command', `Stop-Service -Name docker -Force`]);
557+
});
555558
}
556559

557560
private downloadURL(component: 'docker' | 'docker-rootless-extras', version: string, channel: string): string {

0 commit comments

Comments
 (0)