Skip to content

Commit 0270b40

Browse files
committed
Updating comments
1 parent 881b322 commit 0270b40

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

DockerMsftProvider.psm1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function Install-Package
292292

293293
if(Test-Path $script:pathDockerD)
294294
{
295-
Write-Verbose "Trying to start the docker service..."
295+
Write-Verbose "Trying to enable the docker service..."
296296
$service = get-service -Name Docker -WarningAction SilentlyContinue -ErrorAction SilentlyContinue
297297
if(-not $service)
298298
{
@@ -326,7 +326,8 @@ function Install-Package
326326
# Update the path variable
327327
$null = Update-PathVar
328328

329-
Write-Verbose "A restart is required for this installation. Please restart your machine."
329+
Write-Warning "A restart is required to start docker service. Please restart your machine."
330+
Write-Warning "After the restart please start the docker service."
330331

331332
Write-Output $downloadOutput
332333
}
@@ -528,6 +529,8 @@ function UninstallHelper
528529

529530
function InstallContainer
530531
{
532+
Write-Verbose "Installing Containers..."
533+
531534
if(IsNanoServer)
532535
{
533536
if(HandleProvider)
@@ -567,6 +570,8 @@ function InstallContainer
567570
{
568571
$null = Install-WindowsFeature containers
569572
}
573+
574+
Write-Verbose "Installed containers"
570575
}
571576

572577
function UninstallContainer
@@ -1162,7 +1167,6 @@ function Get-DynamicOptions
11621167
{
11631168
Install
11641169
{
1165-
Write-Output -InputObject (New-DynamicOption -Category $category -Name "NoRestart" -ExpectedType Switch -IsRequired $false)
11661170
Write-Output -InputObject (New-DynamicOption -Category $category -Name "Update" -ExpectedType Switch -IsRequired $false)
11671171
}
11681172
}

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#### Install a Docker image from the online Package repository
33

44
The Docker installer for Windows is now available in an online package repository. They can be found and installed using the Docker provider of PackageManagement (a.k.a. <a href="http://www.oneget.org">OneGet</a>) PowerShell module. The provider needs to be installed before using it. The following PowerShell cmdlets can be used to install the provider.
5-
* Import-Module -Name Docker -Force
6-
* Import-Packageprovider -Name Docker -Force
5+
* Import-Module -Name DockerMsftProvider -Force
6+
* Import-Packageprovider -Name DockerMsftProvider -Force
77

88
Once the provider is installed and imported, you can search, download, or install Docker using OneGet PowerShell cmdlets:
99
* Find-Package
@@ -62,6 +62,10 @@ Updates current installation of docker with the requested version
6262
##### Example 1: Update docker
6363
Install-Package -Name docker -ProviderName DockerMsftProvider -Verbose -Update
6464

65+
### Manual Steps
66+
Once docker is installed, you will need to restart the machine
67+
After the machine is restarted, docker service needs to be in the running state
68+
6569
### Version
6670
0.1.0.0
6771

0 commit comments

Comments
 (0)