for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Container can not be started on Windows Server 1709 VM

Open santaji-cybage opened this issue 8 years ago • 6 comments

Expected behavior

With Windows Server 1709, i should be able to create and run containers.

Actual behavior

I am able to create the containers but not able to run the containers. It hang for indefinite time.

Information

  • important info I am trying all this on VM of Windows Server 1709. The base machine is Windows Server 2016 with all latest updates.

  • host machine details - Kernel Version: 10.0 16299 (16299.15.amd64fre.rs3_release.170928-1534) Operating System: Windows Server Standard OSType: windows Architecture: x86_64 CPUs: 1 Total Memory: 8GiB

  • The output by executing WindowsContainerNetworking-LoggingAndCleanupAide.ps1 without any parameter is uploaded at PreCleanupState_PMGDDPGX.zip -The output by executing Invoke-WebRequest https://aka.ms/Debug-ContainerHost.ps1 -UseBasicParsing | Invoke-Expression is uploaded at DebugContainerHost.txt

  • The log generated by above command is uploaded at logs_20171214-211052.zip

Steps to reproduce the behavior

  1. Pull microsoft/aspnetcore:2.0.0-nanoserver:1709
  2. use the Docker Run command to start the container.
  3. new container is created but does not start. the process is hangs.
  4. terminate the process and see the created containers by using docker ps -a command.
  5. We can see the created contaienr.

santaji-cybage avatar Dec 15 '17 05:12 santaji-cybage

Hi @Cybage2011 I've seen similar behaviour before with Powershell, and had better results using CMD since it displays differently, can you try again in CMD to see if you get a more helpful message?

jasonbivins avatar Dec 20 '17 20:12 jasonbivins

HI @jasonbivins

Tried with CMD, no difference in output. Do you need any other information?

santaji-cybage avatar Dec 22 '17 07:12 santaji-cybage

couple of questions: is nested virtualization enabled? (https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization) also do you have the same behavior with windowsservercore images?

alefesta-zz avatar Dec 22 '17 15:12 alefesta-zz

Yes, as per some blog i have enabled nested virtualization by running following two Powershell commands. WS1709 is the name of my VM.

Set-VMProcessor -VMName WS1709 -ExposeVirtualizationExtensions $true Get-VMNetworkAdapter -VMName WS1709 | Set-VMNetworkAdapter -MacAddressSpoofing On

I also tried with microsoft/windowsservercore image. As expected, it gives error "The operating system of the container does not match the operating system of the host".

santaji-cybage avatar Dec 25 '17 05:12 santaji-cybage

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Mar 28 '18 09:03 docker-robott

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Jun 25 '20 03:06 docker-robott