70-740, Teil 4.1.12. Hyper-V-Container erstellen

70-740, Teil 4.1.12.

Hyper-V-Container erstellen

Ideen für die Recherche im Web:

windows server 2016 hyper-v container

Zum Nachschlagen:

https://docs.microsoft.com/de-de/virtualization/windowscontainers/about/

https://docs.microsoft.com/de-de/virtualization/windowscontainers/quick-start/

https://docs.microsoft.com/de-de/virtualization/windowscontainers/quick-start/quick-start-windows-server

https://docs.microsoft.com/de-de/virtualization/windowscontainers/deploy-containers/deploy-containers-on-nano

https://docs.microsoft.com/de-de/virtualization/windowscontainers/quick-start/quick-start-windows-10

https://www.youtube.com/results?search_query=windows+server+2016+hyper-v+container

Übungen:

Get-NetFirewallRule -DisplayName *Datei- und Druckerfreigabe*

Set-NetFirewallRule –Name “FPS-ICMP4-ERQ-Out” -Enabled

Get-NetFirewallRule –Name “FPS-ICMP4-ERQ-Out” | Enable-NetFirewallRule

Install-WindowsFeature Containers

Get-Command -Module Containers

Get-PSRepository

Find-Module

Install-PackageProvider ContainerImage

Install-PackageProvider ContainerImage -Force

Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

Install-Package -Name docker -ProviderName DockerMsftProvider

###Restart-Computer -Force
#Bei Bedarf:
#Get-Package -Name Docker -ProviderName DockerMsftProvider
#Install-Package -Name Docker -ProviderName DockerMsftProvider -Update -Force
#Start-Service Docker
#sconfig -> 6) Download and Install Updates

docker search microsoft

docker pull microsoft/nanoserver

docker run -it microsoft/nanoserver cmd

Exit

docker run -d –name myIIS -p 80:80 microsoft/iis

docker exec -i myIIS cmd

del C:\inetpub\wwwroot\iisstart.htm

echo „Hallo Welt:) Viel Spaß bei der Zertifizierung;)“ > C:\inetpub\wwwroot\index.html

ipconfig

Exit

$ie = New-Object -ComObject InternetExplorer.Application
$ie.Navigate2(„10.101.2.10“)
$ie.Visible = $true

docker run -it microsoft/nanoserver powershell

Exit

docker run -it –isolation=hyperv microsoft/nanoserver cmd

Exit

docker ps

docker exec -ti <ContainerID> powershell

Exit

docker pull microsoft/windowsservercore

docker run -it microsoft/windowsservercore cmd

Exit

docker run -it microsoft/windowsservercore powershell

Exit

docker run -it –isolation=hyperv microsoft/windowsservercore cmd

Exit

#https://hub.docker.com/r/nanoserver/iis-mysql-php-wordpress/