Skip to content

Commit

Permalink
docker/install: Stop docker service on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
  • Loading branch information
vvoland committed Nov 8, 2024
1 parent 15a9f92 commit 54e0f74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/docker/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 54e0f74

Please sign in to comment.