profile
viewpoint

Ask questions hcsshim::PrepareLayer failed in Win32: The parameter is incorrect

Is this a bug or am I missing something? When I run docker-compose build I get this error:

Building webapplication1
Step 1/17 : FROM microsoft/aspnetcore:2.0-nanoserver-sac2016 AS base
 ---> 7f9d7dc1860e
Step 2/17 : WORKDIR /app
 ---> Using cache
 ---> dd80e4a90ee4
Step 3/17 : EXPOSE 80
 ---> Using cache
 ---> 61d4c528d49e
Step 4/17 : FROM microsoft/aspnetcore-build:2.0-nanoserver-sac2016 AS build
 ---> 1f96313b74e3
Step 5/17 : WORKDIR /src
ERROR: Service 'webapplication1' failed to build: hcsshim::PrepareLayer failed in Win32: The parameter is incorrect. (0x57) layerId=a96bac7ce3ed61f622fc7ec84113221af4ee9a24d792b8a0c7785c6b316c3512 flavour=1

docker version:

Client:
 Version:       18.03.0-ce
 API version:   1.37
 Go version:    go1.9.4
 Git commit:    0520e24
 Built: Wed Mar 21 23:06:28 2018
 OS/Arch:       windows/amd64
 Experimental:  false
 Orchestrator:  swarm

Server:
 Engine:
  Version:      18.03.0-ce
  API version:  1.37 (minimum version 1.24)
  Go version:   go1.9.4
  Git commit:   0520e24
  Built:        Wed Mar 21 23:21:06 2018
  OS/Arch:      windows/amd64
  Experimental: false

docker info:

Containers: 4
 Running: 1
 Paused: 0
 Stopped: 3
Images: 4
Server Version: 18.03.0-ce
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 logentries splunk syslog
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 14393 (14393.2125.amd64fre.rs1_release.180301-2139)
Operating System: Windows 10 Enterprise
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 31.85GiB
Name: myComputerName
ID: JBIL:ZT3U:37LT:YMJA:5LDM:PGM7:L7PN:DDVF:HSDN:VI6S:TS72:A67K
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: -1
 Goroutines: 25
 System Time: 2018-04-11T10:56:44.0030666-04:00
 EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

moby/moby

Answer questions tehho

@beowulfdk Yes i get it working without storage-opts aswell, but i need more disk since vs2019 install takes about 40 GB :( Trying to build a build agent for azure devops using aks as hostware but right now vs2019 is the blocking component for finishing.

Related questions

start container failed with "failed to umount /var/lib/docker/containers/.../shm: no such file or directory" hot 122
start container failed with "failed to umount /var/lib/docker/containers/.../shm: no such file or directory" hot 76
upgrade docker-18.09.2-ce , shim.sock: bind: address already in use: unknown hot 56
runc regression - EPERM running containers from selinux hot 26
integration: "error reading the kernel parameter" errors during CI hot 26
Error response from daemon: rpc error: code = DeadlineExceeded desc = context deadline exceeded hot 24
Windows Server 2019 publish ports in swarm not working hot 24
Swarm restarts all containers hot 22
write unix /var/run/docker.sock->@: write: broken pipe hot 19
OCI runtime exec failed: exec failed: cannot exec a container that has stopped: unknown hot 18
"docker stack deploy">"rpc error: code = 3 desc = name must be valid as a DNS name component" hot 18
Docker 18.09.1 doesn't work with iptables v1.8.2 hot 17
manifest invalid error when pushing image to quay.io hot 17
Can't set net.ipv4.tcp_tw_reuse in docker 1.10.3 hot 15
dockerd stopped responding to API requests; no installed keys could decrypt message hot 15
Github User Rank List