Skip to content
This repository was archived by the owner on Apr 28, 2018. It is now read-only.

Commit 160e458

Browse files
authored
Merge pull request #138 from jterry75/master
Fixing autoload bug
2 parents d0cdaa9 + c481405 commit 160e458

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Docker.PowerShell/Docker.psm1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ else
2323
}
2424

2525
$binaryModulePath = Join-Path -Path $binaryModuleRoot -ChildPath 'Docker.PowerShell.dll'
26-
Import-Module -Name $binaryModulePath -PassThru
26+
Import-Module -Name $binaryModulePath -PassThru
27+
28+
# Hack to do a first load of dll types.
29+
try { Get-Container -WhatIf } catch {}

0 commit comments

Comments
 (0)