docker/install: Stop docker service on Windows

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski 2024-11-08 18:07:31 +01:00
parent 15a9f92044
commit 54e0f74a84
No known key found for this signature in database
GPG Key ID: B85EFCFE26DEF92A

View File

@ -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 {