Skip to content

Commit

Permalink
Fix nssm to stop docker without timeout
Browse files Browse the repository at this point in the history
Signed-off-by: John Howard <jhoward@microsoft.com>
  • Loading branch information
John Howard committed Feb 17, 2016
1 parent 0d4eed8 commit 668e326
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Application Tab:

- **Startup Directory:** C:\Windows\System32

- **Arguments:** /s /c C:\ProgramData\docker\runDockerDaemon.cmd
- **Arguments:** /s /c C:\ProgramData\docker\runDockerDaemon.cmd < nul

- **Service Name** - Docker

Expand Down
Binary file modified virtualization/windowscontainers/deployment/media/nssm1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ Install-ContainerHost
}

Write-Output "Configuring NSSM for $global:DockerServiceName service..."
Start-Process -Wait "nssm" -ArgumentList "install $global:DockerServiceName $($env:SystemRoot)\System32\cmd.exe /s /c $dockerDaemonScript"
Start-Process -Wait "nssm" -ArgumentList "install $global:DockerServiceName $($env:SystemRoot)\System32\cmd.exe /s /c $dockerDaemonScript < nul"
Start-Process -Wait "nssm" -ArgumentList "set $global:DockerServiceName DisplayName Docker Daemon"
Start-Process -Wait "nssm" -ArgumentList "set $global:DockerServiceName Description The Docker Daemon provides management capabilities of containers for docker clients"
# Pipe output to daemon.log
Expand Down

0 comments on commit 668e326

Please sign in to comment.