Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build fails with volume mount error on Windows host when buildKit is enabled. #1258

Closed
pratiksanglikar opened this issue Nov 13, 2019 · 1 comment

Comments

@pratiksanglikar
Copy link

Description

docker build command fails with volume mount error output when buildKit is enabled.

Steps to reproduce the issue:

  1. Make sure to have Docker version >= 19.03
  2. Enable BuildKit by setting environment variable - DOCKER_BUILDKIT=1
  3. Create a ASP.NET project with docker support through visual studio (Or download Sample repro project
  4. Run command docker build -f "D:\source\repos\WebApplication4\WebApplication4\Dockerfile" --force-rm -t webapplication4:dev --target base "D:\source\repos\WebApplication4".
  5. Check the output of the build command.

Describe the results you received:

PS C:\Users\prsangli\source\repos\WebApplication4> docker build -f "C:\Users\prsangli\source\repos\WebApplication4\WebApplication4\Dockerfile" --force-rm -t webapplication4:dev --target base  "C:\Users\prsangli\source\repos\WebApplication4"                                                                                                                                                                                                            [+] Building 0.0s (2/2) FINISHED
 => [internal] load build definition from Dockerfile                                                                                                                                                                     0.0s
 => => transferring dockerfile: 32B                                                                                                                                                                                      0.0s
 => [internal] load .dockerignore                                                                                                                                                                                        0.0s
 => => transferring context: 35B                                                                                                                                                                                         0.0s
failed to solve with frontend dockerfile.v0: failed to read dockerfile: failed to mount C:\ProgramData\Docker\tmp\buildkit-mount414087051: [{Type:bind Source:C:\ProgramData\Docker\windowsfilter\lsbbs5t6dnt8eqc4ehyv38igy Options:[rbind ro]}]: invalid windows mount type: 'bind'

Describe the results you expected:
The project builds successfully.

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

Output of docker version:

Client: Docker Engine - Community
 Version:           19.03.2
 API version:       1.40
 Go version:        go1.12.8
 Git commit:        6a30dfc
 Built:             Thu Aug 29 05:26:49 2019
 OS/Arch:           windows/amd64
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          19.03.2
  API version:      1.40 (minimum version 1.24)
  Go version:       go1.12.8
  Git commit:       6a30dfc
  Built:            Thu Aug 29 05:39:49 2019
  OS/Arch:          windows/amd64
  Experimental:     true

Output of docker info:

Client:
 Debug Mode: false
 Plugins:
  buildx: Build with BuildKit (Docker Inc., v0.3.0-5-g5b97415-tp-docker)
  app: Docker Application (Docker Inc., v0.8.0)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 116
 Server Version: 19.03.2
 Storage Driver: windowsfilter (windows) lcow (linux)
  Windows:
  LCOW:
 Logging Driver: json-file
 Plugins:
  Volume: local
  Network: ics l2bridge l2tunnel nat null overlay transparent
  Log: awslogs etwlogs fluentd gcplogs 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.418)
 OSType: windows
 Architecture: x86_64
 CPUs: 12
 Total Memory: 31.85GiB
 Name: PRSANGLI-D1
 ID: N5KU:KGSR:E2K5:YXJ5:PXT4:CJ4D:PGLN:UWEE:7EPU:ONVV:VXDY:QT4M
 Docker Root Dir: C:\ProgramData\Docker
 Debug Mode: true
  File Descriptors: -1
  Goroutines: 72
  System Time: 2019-11-12T16:21:17.2515085-08:00
  EventsListeners: 3
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: true
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Product License: Community Engine

Additional environment details (AWS, VirtualBox, physical, etc.):
Physical machine.
Running docker commands through Containers Tools for Visual Studio.

@AkihiroSuda
Copy link
Member

Windows is not supported currently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants