Skip to content

Windows 1903 fails when storage-opt used #4100

@smasherprog

Description

@smasherprog
  • [ X ] I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

docker run -it --storage-opt "size=60GB" mcr.microsoft.com/windows/nanoserver:1903
should work
Additionally, I have
"storage-opts": [
"size=80G"
]
added in my configuration file

Actual behavior

PS C:\Users\myusername> docker run -it --storage-opt "size=60GB" mcr.microsoft.com/windows/nanoserver:1903
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: container c8ff1562a43c8474e7e149a6471532c44da1419d2b9cec06a2945f858081db79 encountered an error during Start: failure in a Windows system call: The virtual machine or container exited unexpectedly. (0xc0370106).

Information

Windows OS 1903
image

The above command always fails for any 1903 images. I have tried this on If I do not include the storage-opt, the container starts without issue.

[20:56:41.399][WindowsDaemon ][Info ] debug: form data: {"AttachStderr":true,"AttachStdin":true,"AttachStdout":true,"Cmd":null,"Domainname":"","Entrypoint":null,"Env":[],"HostConfig":{"AutoRemove":false,"Binds":null,"BlkioDeviceReadBps":null,"BlkioDeviceReadIOps":null,"BlkioDeviceWriteBps":null,"BlkioDeviceWriteIOps":null,"BlkioWeight":0,"BlkioWeightDevice":[],"CapAdd":null,"CapDrop":null,"Cgroup":"","CgroupParent":"","ConsoleSize":[50,285],"ContainerIDFile":"","CpuCount":0,"CpuPercent":0,"CpuPeriod":0,"CpuQuota":0,"CpuRealtimePeriod":0,"CpuRealtimeRuntime":0,"CpuShares":0,"CpusetCpus":"","CpusetMems":"","DeviceCgroupRules":null,"Devices":[],"DiskQuota":0,"Dns":[],"DnsOptions":[],"DnsSearch":[],"ExtraHosts":null,"GroupAdd":null,"IOMaximumBandwidth":0,"IOMaximumIOps":0,"IpcMode":"","Isolation":"process","KernelMemory":0,"Links":null,"LogConfig":{"Config":{},"Type":""},"MaskedPaths":null,"Memory":0,"MemoryReservation":0,"MemorySwap":0,"MemorySwappiness":-1,"NanoCpus":0,"NetworkMode":"default","OomKillDisable":false,"OomScoreAdj":0,"PidMode":"","PidsLimit":0,"PortBindings":{},"Privileged":false,"PublishAllPorts":false,"ReadonlyPaths":null,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":"no"},"SecurityOpt":null,"ShmSize":0,"StorageOpt":{"size":"60GB"},"UTSMode":"","Ulimits":null,"UsernsMode":"","VolumeDriver":"","VolumesFrom":null},"Hostname":"","Image":"mcr.microsoft.com/windows/nanoserver:1903","Labels":{},"NetworkingConfig":{"EndpointsConfig":{}},"OnBuild":null,"OpenStdin":true,"StdinOnce":true,"Tty":true,"User":"","Volumes":{},"WorkingDir":""}
[20:56:41.400][WindowsDaemon ][Info ] debug: hcsshim::GetLayerMountPath path E:\docker\windowsfilter\ed712c7638270d5b1fb9a34e4a1706c6d295d2bd472f478852fb2aab615c84e5
[20:56:41.400][WindowsDaemon ][Info ] debug: Calling proc (1)
[20:56:41.400][WindowsDaemon ][Info ] debug: Calling proc (2)
[20:56:41.401][WindowsDaemon ][Info ] debug: hcsshim::GetLayerMountPath succeeded path=E:\docker\windowsfilter\ed712c7638270d5b1fb9a34e4a1706c6d295d2bd472f478852fb2aab615c84e5 mountPath=E:\docker\windowsfilter\ed712c7638270d5b1fb9a34e4a1706c6d295d2bd472f478852fb2aab615c84e5
[20:56:41.401][WindowsDaemon ][Info ] debug: hcsshim::CreateScratchLayer path E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e
[20:56:41.401][WindowsDaemon ][Info ] debug: hcsshim::NameToGuid name:ed712c7638270d5b1fb9a34e4a1706c6d295d2bd472f478852fb2aab615c84e5 guid:3e4ccc9c-b3eb-539a-8b1b-8837d19a5c48
[20:56:41.409][WindowsDaemon ][Info ] debug: hcsshim::CreateScratchLayer - succeeded path=E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e
[20:56:41.409][WindowsDaemon ][Info ] debug: hcsshim::ExpandScratchSize path=E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e size=64424509440
[20:56:41.561][WindowsDaemon ][Info ] debug: hcsshim::ExpandScratchSize - succeeded path=E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e size=64424509440
[20:56:41.576][ApiProxy ][Info ] time="2019-06-18T20:56:41-07:00" msg="proxy << POST /v1.39/containers/create (177.7723ms)\n"
[20:56:41.577][ApiProxy ][Info ] time="2019-06-18T20:56:41-07:00" msg="proxy >> POST /v1.39/containers/a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e/attach?stderr=1&stdin=1&stdout=1&stream=1\n"
[20:56:41.578][ApiProxy ][Info ] time="2019-06-18T20:56:41-07:00" msg="Upgrading to raw stream"
[20:56:41.578][ApiProxy ][Info ] time="2019-06-18T20:56:41-07:00" msg="proxy >> POST /v1.39/containers/a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e/wait?condition=next-exit\n"
[20:56:41.578][WindowsDaemon ][Info ] debug: Calling POST /v1.39/containers/a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e/attach?stderr=1&stdin=1&stdout=1&stream=1
[20:56:41.579][WindowsDaemon ][Info ] debug: attach: stderr: begin
[20:56:41.579][WindowsDaemon ][Info ] debug: attach: stdout: begin
[20:56:41.579][WindowsDaemon ][Info ] debug: attach: stdin: begin
[20:56:41.579][ApiProxy ][Info ] time="2019-06-18T20:56:41-07:00" msg="proxy >> POST /v1.39/containers/a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e/start [start]\n"
[20:56:41.579][WindowsDaemon ][Info ] debug: Calling POST /v1.39/containers/a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e/wait?condition=next-exit
[20:56:41.579][ApiProxy ][Info ] time="2019-06-18T20:56:41-07:00" msg="proxy >> POST /v1.39/containers/a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e/start\n"
[20:56:41.580][WindowsDaemon ][Info ] debug: Calling POST /v1.39/containers/a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e/start
[20:56:41.580][WindowsDaemon ][Info ] debug: WindowsGraphDriver Get() id a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e mountLabel
[20:56:41.585][WindowsDaemon ][Info ] debug: hcsshim::ActivateLayer path E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e
[20:56:41.592][WindowsDaemon ][Info ] debug: hcsshim::ActivateLayer - succeeded path=E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e
[20:56:41.593][WindowsDaemon ][Info ] debug: hcsshim::PrepareLayer path E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e
[20:56:41.593][WindowsDaemon ][Info ] debug: hcsshim::NameToGuid name:ed712c7638270d5b1fb9a34e4a1706c6d295d2bd472f478852fb2aab615c84e5 guid:3e4ccc9c-b3eb-539a-8b1b-8837d19a5c48
[20:56:41.610][WindowsDaemon ][Error ] hcsshim::PrepareLayer failed in Win32: The parameter is incorrect. (0x57) path=E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e
[20:56:41.610][WindowsDaemon ][Info ] debug: hcsshim::DeactivateLayer path E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e
[20:56:41.637][WindowsDaemon ][Info ] debug: hcsshim::DeactivateLayer succeeded path=E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e
[20:56:41.649][WindowsDaemon ][Info ] debug: WindowsGraphDriver Put() id a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e
[20:56:41.649][WindowsDaemon ][Info ] debug: attach: stdout: end
[20:56:41.649][WindowsDaemon ][Info ] debug: attach: stderr: end
[20:56:41.649][WindowsDaemon ][Info ] debug: attach: stdin: end
[20:56:41.649][ApiProxy ][Info ] time="2019-06-18T20:56:41-07:00" msg="proxy << POST /v1.39/containers/a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e/start (70.0623ms)\n"
[20:56:41.650][WindowsDaemon ][Error ] a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e cleanup: failed to delete container from containerd: no such container
[20:56:41.650][WindowsDaemon ][Info ] debug: attach done
[20:56:41.650][ApiProxy ][Info ] time="2019-06-18T20:56:41-07:00" msg="Cancel connection..."
[20:56:41.650][WindowsDaemon ][Info ] debug: FIXME: Got an API for which error does not match any expected type!!!: hcsshim::PrepareLayer failed in Win32: The parameter is incorrect. (0x57) path=E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e [module=api error_type=*hcserror.HcsError]
[20:56:41.650][ApiProxy ][Info ] time="2019-06-18T20:56:41-07:00" msg="proxy << POST /v1.39/containers/a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e/attach?stderr=1&stdin=1&stdout=1&stream=1 (73.0527ms)\n"
[20:56:41.650][WindowsDaemon ][Error ] Handler for POST /v1.39/containers/a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e/start returned error: hcsshim::PrepareLayer failed in Win32: The parameter is incorrect. (0x57) path=E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e
[20:56:41.650][WindowsDaemon ][Info ] debug: FIXME: Got an API for which error does not match any expected type!!!: hcsshim::PrepareLayer failed in Win32: The parameter is incorrect. (0x57) path=E:\docker\windowsfilter\a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e [module=api error_type=*hcserror.HcsError]
[20:56:41.650][ApiProxy ][Info ] time="2019-06-18T20:56:41-07:00" msg="proxy << POST /v1.39/containers/a7e36ae68a03d1149a5822a2c5669e2140773125c517432e79ec5c67800a8e7e/wait?condition=next-exit (72.0542ms)\n"
[20:56:41.650][WindowsDaemon ][Info ] debug: Closing buffered stdin pipe
[20:57:02.858][ApiProxy ][Info ] time="2019-06-18T20:57:02-07:00" msg="proxy >> GET /_ping\n"
[20:57:02.859][ApiProxy ][Info ] time="2019-06-18T20:57:02-07:00" msg="proxy << GET /_ping (0s)\n"
[20:57:02.859][WindowsDaemon ][Info ] debug: Calling GET /_ping
[20:57:02.861][ApiProxy ][Info ] time="2019-06-18T20:57:02-07:00" msg="proxy >> POST /v1.39/containers/create [rewriteBinds]\n"
[20:57:02.861][ApiProxy ][Info ] time="2019-06-18T20:57:02-07:00" msg="proxy >> POST /v1.39/containers/create\n"
[20:57:02.862][WindowsDaemon ][Info ] debug: Calling POST /v1.39/containers/create
[20:57:02.862][WindowsDaemon ][Info ] debug: form data: {"AttachStderr":true,"AttachStdin":false,"AttachStdout":true,"Cmd":null,"Domainname":"","Entrypoint":null,"Env":[],"HostConfig":{"AutoRemove":false,"Binds":null,"BlkioDeviceReadBps":null,"BlkioDeviceReadIOps":null,"BlkioDeviceWriteBps":null,"BlkioDeviceWriteIOps":null,"BlkioWeight":0,"BlkioWeightDevice":[],"CapAdd":null,"CapDrop":null,"Cgroup":"","CgroupParent":"","ConsoleSize":[50,285],"ContainerIDFile":"","CpuCount":0,"CpuPercent":0,"CpuPeriod":0,"CpuQuota":0,"CpuRealtimePeriod":0,"CpuRealtimeRuntime":0,"CpuShares":0,"CpusetCpus":"","CpusetMems":"","DeviceCgroupRules":null,"Devices":[],"DiskQuota":0,"Dns":[],"DnsOptions":[],"DnsSearch":[],"ExtraHosts":null,"GroupAdd":null,"IOMaximumBandwidth":0,"IOMaximumIOps":0,"IpcMode":"","Isolation":"","KernelMemory":0,"Links":null,"LogConfig":{"Config":{},"Type":""},"MaskedPaths":null,"Memory":0,"MemoryReservation":0,"MemorySwap":0,"MemorySwappiness":-1,"NanoCpus":0,"NetworkMode":"default","OomKillDisable":false,"OomScoreAdj":0,"PidMode":"","PidsLimit":0,"PortBindings":{},"Privileged":false,"PublishAllPorts":false,"ReadonlyPaths":null,"ReadonlyRootfs":false,"RestartPolicy":{"MaximumRetryCount":0,"Name":"no"},"SecurityOpt":null,"ShmSize":0,"StorageOpt":{"size":"60GB"},"UTSMode":"","Ulimits":null,"UsernsMode":"","VolumeDriver":"","VolumesFrom":null},"Hostname":"","Image":"mcr.microsoft.com/windows/nanoserver:1903","Labels":{},"NetworkingConfig":{"EndpointsConfig":{}},"OnBuild":null,"OpenStdin":false,"StdinOnce":false,"Tty":false,"User":"","Volumes":{},"WorkingDir":""}
[20:57:02.863][WindowsDaemon ][Info ] debug: hcsshim::GetLayerMountPath path E:\docker\windowsfilter\ed712c7638270d5b1fb9a34e4a1706c6d295d2bd472f478852fb2aab615c84e5
[20:57:02.864][WindowsDaemon ][Info ] debug: Calling proc (1)
[20:57:02.864][WindowsDaemon ][Info ] debug: Calling proc (2)
[20:57:02.865][WindowsDaemon ][Info ] debug: hcsshim::GetLayerMountPath succeeded path=E:\docker\windowsfilter\ed712c7638270d5b1fb9a34e4a1706c6d295d2bd472f478852fb2aab615c84e5 mountPath=E:\docker\windowsfilter\ed712c7638270d5b1fb9a34e4a1706c6d295d2bd472f478852fb2aab615c84e5
[20:57:02.865][WindowsDaemon ][Info ] debug: hcsshim::CreateScratchLayer path E:\docker\windowsfilter\f77e4b334ec015fc863ac7a559dc9b43d8f131c5b26bd60e5a3473dc5d02746b
[20:57:02.865][WindowsDaemon ][Info ] debug: hcsshim::NameToGuid name:ed712c7638270d5b1fb9a34e4a1706c6d295d2bd472f478852fb2aab615c84e5 guid:3e4ccc9c-b3eb-539a-8b1b-8837d19a5c48
[20:57:02.868][WindowsDaemon ][Info ] debug: hcsshim::CreateScratchLayer - succeeded path=E:\docker\windowsfilter\f77e4b334ec015fc863ac7a559dc9b43d8f131c5b26bd60e5a3473dc5d02746b
[20:57:02.868][WindowsDaemon ][Info ] debug: hcsshim::ExpandScratchSize path=E:\docker\windowsfilter\f77e4b334ec015fc863ac7a559dc9b43d8f131c5b26bd60e5a3473dc5d02746b size=64424509440
[20:57:02.986][WindowsDaemon ][Info ] debug: hcsshim::ExpandScratchSize - succeeded path=E:\docker\windowsfilter\f77e4b334ec015fc863ac7a559dc9b43d8f131c5b26bd60e5a3473dc5d02746b size=64424509440
[20:57:03.002][ApiProxy ][Info ] time="2019-06-18T20:57:03-07:00" msg="proxy << POST /v1.39/containers/create (139.4647ms)\n"
[20:57:03.002][ApiProxy ][Info ] time="2019-06-18T20:57:03-07:00" msg="proxy >> POST /v1.39/containers/f77e4b334ec015fc863ac7a559dc9b43d8f131c5b26bd60e5a3473dc5d02746b/attach?stderr=1&stdout=1&stream=1\n"
[20:57:03.003][ApiProxy ][Info ] time="2019-06-18T20:57:03-07:00" msg="Upgrading to raw stream"
[20:57:03.004][WindowsDaemon ][Info ] debug: Calling POST /v1.39/containers/f77e4b334ec015fc863ac7a559dc9b43d8f131c5b26bd60e5a3473dc5d02746b/attach?stderr=1&stdout=1&stream=1
[20:57:03.004][ApiProxy ][Info ] time="2019-06-18T20:57:03-07:00" msg="proxy >> POST /v1.39/containers/f77e4b334ec015fc863ac7a559dc9b43d8f131c5b26bd60e5a3473dc5d02746b/wait?condition=next-exit\n"
[20:57:03.004][WindowsDaemon ][Info ] debug: attach: stdout: begin
[20:57:03.004][WindowsDaemon ][Info ] debug: attach: stderr: begin
[20:57:03.006][WindowsDaemon ][Info ] debug: Calling POST /v1.39/containers/f77e4b334ec015fc863ac7a559dc9b43d8f131c5b26bd60e5a3473dc5d02746b/wait?condition=next-exit
[20:57:03.006][ApiProxy ][Info ] time="2019-06-18T20:57:03-07:00" msg="proxy >> POST /v1.39/containers/f77e4b334ec015fc863ac7a559dc9b43d8f131c5b26bd60e5a3473dc5d02746b/start [start]\n"
[20:57:03.006][ApiProxy ][Info ] time="2019-06-18T20:57:03-07:00" msg="proxy >> POST /v1.39/containers/f77e4b334ec015fc863ac7a559dc9b43d8f131c5b26bd60e5a3473dc5d02746b/start\n"
[20:57:03.007][WindowsDaemon ][Info ] debug: Calling POST /v1.39/containers/f77e4b334ec015fc863ac7a559dc9b43d8f131c5b26bd60e5a3473dc5d02746b/start
[20:57:03.015][WindowsDaemon ][Info ] debug: Assigning addresses for endpoint brave_gagarin's interface on network nat
[20:57:03.015][WindowsDaemon ][Info ] debug: RequestAddress(0.0.0.0/0, , map[])
[20:57:03.015][WindowsDaemon ][Info ] debug: endpointStruct.EnableInternalDNS =[false]
[20:57:03.015][WindowsDaemon ][Info ] debug: [POST]=>[/endpoints/] Request : {"VirtualNetwork":"234F0C8F-7FD2-40A7-8B77-EB278C8D05B7","EnableInternalDNS":true}
[20:57:03.024][WindowsDaemon ][Info ] debug: Network Response : {"ActivityId":"D754130E-E361-402C-B6CE-F1F1D3E50009","AdditionalParams":{},"CreateProcessingStartTime":132053902230192699,"DNSServerList":"172.17.144.1,192.168.1.1","EnableInternalDNS":true,"EnableLowInterfaceMetric":true,"EncapOverhead":0,"Flags":0,"GatewayAddress":"172.17.144.1","Health":{"LastErrorCode":0,"LastUpdateTime":132053902230192699},"ID":"967E36EA-9251-4E0E-9AE9-0CA221A35C9D","IPAddress":"172.17.150.204","MacAddress":"00-15-5D-4C-A9-40","Name":"Ethernet","Policies":[],"PrefixLength":20,"SharedContainers":[],"State":1,"Type":"nat","Version":42949672963,"VirtualNetwork":"234F0C8F-7FD2-40A7-8B77-EB278C8D05B7","VirtualNetworkName":"nat","Resources":{"AdditionalParams":{},"AllocationOrder":0,"CompartmentOperationTime":0,"Flags":0,"Health":{"LastErrorCode":0,"LastUpdateTime":132053902230192699},"ID":"D754130E-E361-402C-B6CE-F1F1D3E50009","PortOperationTime":0,"State":1,"SwitchOperationTime":0,"VfpOperationTime":0,"parentId":"2BA078B4-1473-4982-9E32-4FB5671CB56F"}}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions