From 54e0f74a8452e2e212146251dc227f514079123b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Fri, 8 Nov 2024 18:07:31 +0100 Subject: [PATCH] docker/install: Stop docker service on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paweł Gronowski --- src/docker/install.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/docker/install.ts b/src/docker/install.ts index 10d3b7b..22828cf 100644 --- a/src/docker/install.ts +++ b/src/docker/install.ts @@ -552,6 +552,9 @@ EOF`, await core.group('Removing Docker context', async () => { await Docker.exec(['context', 'rm', '-f', this.contextName]); }); + await core.group('Stopping Docker daemon service', async () => { + await Exec.exec('powershell', ['-Command', `Stop-Service -Name docker -Force`]); + }); } private downloadURL(component: 'docker' | 'docker-rootless-extras', version: string, channel: string): string {