mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-26 22:26:08 +08:00
docker/install: Stop docker service on Windows
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
15a9f92044
commit
54e0f74a84
@ -552,6 +552,9 @@ EOF`,
|
|||||||
await core.group('Removing Docker context', async () => {
|
await core.group('Removing Docker context', async () => {
|
||||||
await Docker.exec(['context', 'rm', '-f', this.contextName]);
|
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 {
|
private downloadURL(component: 'docker' | 'docker-rootless-extras', version: string, channel: string): string {
|
||||||
|
Loading…
Reference in New Issue
Block a user