How to make use of NutGet provider and docker platform packages

How to make use of NutGet provider and docker platform packages

The NuGet provider is a package management provider for PowerShell, and it allows you to discover, install, and manage packages from the NuGet repository. It allows you to discover, install, and manage packages (libraries, tools, etc.) in your projects. NuGet is not directly related to Docker but is commonly used in the context of software development to manage dependencies.

Docker is a platform for developing, shipping, and running applications in containers. Containers are lightweight, portable, and provide a consistent environment for applications to run. Docker for PowerShell typically refers to using PowerShell commands or scripts to interact with Docker, manage containers, and perform various tasks related to containerized applications.

PowerShell commands can be used to build Docker images, run containers, manage Docker networks, and more. Docker and PowerShell work together to provide a seamless experience for managing containerized environments.

If you try to install a package that requires NutGet and running a container services you will see the following

PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'

Check if NuGet is Installed: Open PowerShell and run the following command to check if the NuGet provider is already installed:

Get-PackageProvider -ListAvailable        

Set TLS to version 1.2

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12        

Install the NuGet package using command as

Install-PackageProvider -Name NuGet        

Install the DockerMsftProvider module in PowerShell. This will be required to manage docker containers via PowerShell

Install-Module -Name DockerMsftProvider        

Then run docker package

 Install-package -name docker -providername DockerMsftProvider -Verbose -Force        

Now install container and prompt for restart

(Install-WindowsFeature Containers).RestartNeeded        

Now restart your computer

Testing: Then Test your Docker EE installation by running the hello-world container

docker container run hello-world:nanoserver        

要查看或添加评论,请登录

Valentin Komarovskiy, MBA的更多文章

  • ISO 27001 Compliance in AWS

    ISO 27001 Compliance in AWS

    AWS provides a number of tools and frameworks that support ISO 27001 compliance. However, there is no “one size fits…

  • ISO 27001 compliance within both Microsoft 365 and Azure

    ISO 27001 compliance within both Microsoft 365 and Azure

    Microsoft provides configuration baselines to help organizations achieve ISO 27001 compliance within both Microsoft 365…

  • How to cut your Windows, Microsoft 365 and Azure Costs by 40%

    How to cut your Windows, Microsoft 365 and Azure Costs by 40%

    Observations in the field – what we learned from working with other customers: · Licensing and Azure usage audits are…

    1 条评论
  • Difference between Global and Universal groups

    Difference between Global and Universal groups

    In Active Directory (AD), groups are used to manage permissions and simplify administration. There are three main types…

  • Why is Cardano burning genesis keys?

    Why is Cardano burning genesis keys?

    Why is Cardano burning genesis keys? Genesis keys refer to cryptographic keys associated with the genesis block, which…

    1 条评论
  • Device Owner is missing in Entra ID (Azure AD)

    Device Owner is missing in Entra ID (Azure AD)

    If the "owner" is missing on a Windows device in Azure AD, it usually means the device does not have an assigned…

  • error replacing SharePoint root site

    error replacing SharePoint root site

    I recently worked with Microsoft support and SharePoint Online product teams to troubleshoot and resolve a bug in the…

  • What is Identity Protection and breach prevention

    What is Identity Protection and breach prevention

    Identity breach prevention refers to the set of measures and strategies implemented by organizations to protect against…

  • When is Cardano halving?

    When is Cardano halving?

    When is Cardano halving? Short answer is every EPOCH or 5 days, but it’s not exactly a halving, more of a gradual…

  • E-mail born security threats

    E-mail born security threats

    Email-borne security threats refer to various types of cyber threats that are delivered or propagated through email…

社区洞察

其他会员也浏览了