Send docker import module not working

Import-Module posh-docker does not work in Power Shell while working as an administrator

I am trying to enable autocomplete commands for the current PowerShell, but am getting below errors. executepolicy is already installed on RemoteSigned. I have a Docker Toolbox on my system.

Import-Module : The specified module 'posh-docker' was not loaded because no valid module 
 file was found directory. At line:1 char:1
+ Import-Module posh-docker
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ResourceUnavailable: (posh-docker:String) [Import-Module], FileNotFoundExc
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
+4
source share
2 answers

From your question, it seems that you are following the instructions on this page that read:

You can install the PowerShell module for poker dockers as follows:

(my emphasis). Their wording is incorrect; These steps are for importing the module after installing it.

GitHub . :

Windows 10/Windows Server 2016

  • Install-Module -Scope CurrentUser posh-docker

Windows

, , Windows: PackageManagement Windows Management Framework 5.0 PowerShell 5.

, ( 2017) WMF 5.1, FYI.

+8

.

  • C:\Users\[user]\Documents\WindowsPowerShell\modules\posh-docker\*
  • Install-Module -Scope AllUsers posh-docker powershell
+1

Source: https://habr.com/ru/post/1664958/


All Articles