Share via

AZ-800 Docker

Dalbir Singh Rana 120 Reputation points
2024-04-02T23:37:52.6966667+00:00

Can you advise on the approach of installing docker which is best in line with Az800.
Especially when we install it on Windows server 2022 (desktop experience)
I'm abit confused is it Docker Engine? Docker Desktop? run a nuget command?

Was there a scenario with the strategic alignment with Microsoft meant that docker installations changed?

Install-Module -Name DockerProvider -Repository PSGallery -Force

At the NuGet Provider prompt, press the Y key, and then press Enter.

In the Windows PowerShell console, enter the following command, and then press Enter to install the Docker runtime

Install-Package -Name docker -ProviderName DockerProvider

Additionally as it's quite extensive in the course material is it something wsus updates support? Is docker something where enabling containers in add roles and features is enough? I've noticed many labs with docker ensure internet must be used i'm assuming if i'm labbing it on a private network I need to expose it for simplicty can't easily use it on private network?

Azure | Azure Training

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-04-04T06:26:17.95+00:00

    Hi Dalbir Singh,

    Thank you for your response.

    Docker Engine: It’s the core containerization technology that runs on servers and manages containers. It’s open source and runs on a Linux VM on Windows VM.

    Docker Desktop: This is a developer-focused tool that includes Docker Engine along with additional features to simplify development and testing of containerized applications on local machines. It provides a graphical user interface (GUI) and makes it easy to manage containers, including running a single-node Kubernetes “cluster.”

    Installing Docker on Windows Server 2022:

    To install Docker on Windows Server 2022, follow these below steps:

    To Install the Windows Server 2022 containers feature.

    Install Hyper-V in Windows Server 2022.

    Install the DockerMsftProvider module using PowerShell:

    Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

    Install Docker using the following command:

    Install-Package -Name docker -ProviderName DockerMsftProvider

    Windows Server Update Services and Docker:

    Windows Server Update Services (WSUS) updates do not directly impact Docker installations. Docker is a separate technology for containerization.

    Enabling containers via the “Add Roles and Features” wizard is not enough for Docker. You need to install Docker separately as described above.

    Using Docker on a Private Network:

    Docker containers can work on a private network without requiring internet access.

    However, some Docker images may need to download dependencies during the build process, which requires internet access.

    If you’re labbing on a private network, consider creating a local Docker registry or caching the necessary images beforehand.

    If the information is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments. We are glad to assist you.

    Thank you.

    Was this answer helpful?

    0 comments No comments

  2. Dalbir Singh Rana 120 Reputation points
    2024-04-03T22:40:50.2+00:00

    ok after retrying it's worked not sure what caused the error i had where under packages it didn't recognise docker

    Install-Package -Name docker -ProviderName DockerProvider

    i'm guessing this approach installs docker engine and should avoid docker desktop? I recall trying to find docker as a package via a set of other commands. It did say when doing the install that docker wasn't trusted

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.