Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this sections, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You deploy Windows Server 2016 to a server named Server1.
You need to ensure that you can run Windows Containers on Server1.
Solution: On Server1, you enable the Containers feature, and then you install the PowerShell for Docker module. You restart the server.
Does this meet the goal?
A. Yes
B. No
Solution: On Server1, you enable the Containers feature, and then you install the PowerShell Docker module. You restart the server.
Solution: On server1, you install the DockerMsftProvider PowerShell and the Docker package. You restart the server.
This is a trick questions, you have to install the modules then the package then reboot.
https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/deploy-containers-on-server
Install the OneGet PowerShell module.
PowerShell
Copy
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Use OneGet to install the latest version of Docker.
PowerShell
Copy
Install-Package -Name docker -ProviderName DockerMsftProvider
When the installation is complete, reboot the computer.
PowerShell
Copy
Restart-Computer -Force
given answer is correct.
this one is correct agreed with Lafegob
It`s a trick question, at first i thought too that was B because of the module part.
BUT!!!!
If you read very carefull the part from the Explanation:
“To install Docker we’ll use the OneGet provider PowerShell module. The provider will enable the containers feature on your machine and install Docker – this will require a reboot.”
So… it is really a module that install Docker
No, you should install Docker not the Powershell Module