Skip to content

Docker build windows 19.03 --storage-opt size>20G #39524

@tehho

Description

@tehho

Description
Unable to build windows images larger then 20 GB.
Am able to run images with --storage-opt size>20G, either with docker run --storage-opt or dockerd --register-service --storage-opt

Steps to reproduce the issue:

  1. Windows 10 19.03
    Version 10.0.18362 build 18362

Dockerfile:
FROM mcr.microsoft.com/windows/servercore:ltsc2019
WORKDIR /image/
3. net stop docker;
dockerd --unregister-service;
dockerd --register-service --storage-opt "size=22G";
net start docker;
docker build -t docker-test:latest --no-cache . ;
docker run --rm docker-test:latest powershell -c get-psdrive;

Describe the results you received:
With storage-opt <20G docker will build and run. Both will not listen to storage-opt size<=20G and run disk at 20G anyways.
With storage-opt >20G docker won't build with error: "hcsshim::PrepareLayer failed in Win32: The parameter is incorrect. (0x57)"
But will run an image with disk >20G as set by dockerd

Describe the results you expected:
Docker build to listen to storage-opt as docker run does.

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Client:                                                   
 Version:           18.09.6                               
 API version:       1.39                                  
 Go version:        go1.10.8                              
 Git commit:        c89750f8                              
 Built:             06/09/2019 17:10:42                   
 OS/Arch:           windows/amd64                         
 Experimental:      false                                 
                                                          
Server: Docker Engine - Community                         
 Engine:                                                  
  Version:          18.09.2                               
  API version:      1.39 (minimum version 1.24)           
  Go version:       go1.10.6                              
  Git commit:       6247962                               
  Built:            Sun Feb 10 04:28:48 2019              
  OS/Arch:          windows/amd64                         
  Experimental:     false                                 

Output of docker info:

Containers: 1                                                                                     
 Running: 0                                                                                       
 Paused: 0                                                                                        
 Stopped: 1                                                                                       
Images: 27                                                                                        
Server Version: 18.09.2                                                                           
Storage Driver: windowsfilter                                                                     
 Windows:                                                                                         
Logging Driver: json-file                                                                         
Plugins:                                                                                          
 Volume: local                                                                                    
 Network: ics l2bridge l2tunnel nat null overlay transparent                                      
 Log: awslogs etwlogs fluentd gelf json-file local logentries splunk syslog                       
Swarm: inactive                                                                                   
Default Isolation: hyperv                                                                         
Kernel Version: 10.0 18362 (18362.1.amd64fre.19h1_release.190318-1202)                            
Operating System: Windows 10 Enterprise Version 1903 (OS Build 18362.207)                         
OSType: windows                                                                                   
Architecture: x86_64                                                                              
CPUs: 4                                                                                           
Total Memory: 31.87GiB                                                                            
Name: COLBTBTNH2                                                                                  
ID: 6BXE:H65O:6ZHQ:4SCZ:T662:RSVA:LD6X:5SKV:6T43:6ZP6:WAL5:VYOK                                   
Docker Root Dir: C:\ProgramData\Docker                                                            
Debug Mode (client): false                                                                        
Debug Mode (server): true                                                                         
 File Descriptors: -1                                                                             
 Goroutines: 23                                                                                   
 System Time: 2019-07-15T15:43:39.7056454+02:00                                                   
 EventsListeners: 0                                                                               
Registry: https://index.docker.io/v1/                                                             
Labels:                                                                                           
Experimental: false                                                                               
Insecure Registries:                                                                              
 127.0.0.0/8                                                                                      
Live Restore Enabled: false                                                                       
Product License: Community Engine                                                                 

Additional environment details (AWS, VirtualBox, physical, etc.):
Localmachine. Tested briefly on windows servercore with containers on Azure but was not able to get net start docker to work.

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