Docker building error on Windows 10

1
Hi, Guys Can you please give me an advice to resolve following error while building Mendix project as Docker image? I referred the document from https://docs.mendix.com/developerportal/deploy/docker-deploy#1-introduction Steps I did Installed Docker container Downloaded Docker buildpack for Mendix Copied project folder to the to a sub-folder where Docker build pack is unzipped Opened a command windows Run command: docker build . --build-arg BUILD_PATH="prj\ChartPractice-main" -t chartdemo   The error message C:\docker-mendix-buildpack-master>docker build . --build-arg BUILD_PATH="prj\ChartPractice-main" -t chartdemo Sending build context to Docker daemon  3.438GB Step 1/27 : ARG ROOTFS_IMAGE=mendix/rootfs:bionic Step 2/27 : FROM ${ROOTFS_IMAGE} AS builder bionic: Pulling from mendix/rootfs image operating system "linux" cannot be used on this platform Some References C:\docker-mendix-buildpack-master>docker version Client: Docker Engine - Community  Version:           19.03.12  API version:       1.40  Go version:        go1.13.10  Git commit:        48a66213fe  Built:             Mon Jun 22 15:43:18 2020  OS/Arch:           windows/amd64  Experimental:      false Server: Docker Engine - Community  Engine:   Version:          19.03.12   API version:      1.40 (minimum version 1.24)   Go version:       go1.13.10   Git commit:       48a66213fe   Built:            Mon Jun 22 15:57:30 2020   OS/Arch:          windows/amd64   Experimental:     false C:\docker-mendix-buildpack-master>docker info Client:  Debug Mode: false Server:  Containers: 0   Running: 0   Paused: 0   Stopped: 0  Images: 0  Server Version: 19.03.12  Storage Driver: windowsfilter   Windows:  Logging Driver: json-file  Plugins:   Volume: local   Network: ics internal l2bridge l2tunnel nat null overlay private transparent   Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog  Swarm: inactive  Default Isolation: hyperv  Kernel Version: 10.0 17763 (17763.1.amd64fre.rs5_release.180914-1434)  Operating System: Windows 10 Enterprise Version 1809 (OS Build 17763.1339)  OSType: windows  Architecture: x86_64  CPUs: 8  Total Memory: 31.89GiB  Name: krsel16jangyp  ID: P3YT:62M7:2MF4:LK52:UBXK:5MNJ:3MWZ:QAOX:AWIR:QBPE:J7N3:GLM4  Docker Root Dir: C:\ProgramData\Docker  Debug Mode: true   File Descriptors: -1   Goroutines: 29   System Time: 2020-09-01T17:14:06.508187+09:00   EventsListeners: 2  Registry: https://index.docker.io/v1/  Labels:  Experimental: false  Insecure Registries:   127.0.0.0/8  Live Restore Enabled: false  Product License: Community Engine My Questions Why the builder says ‘image operating system "linux" cannot be used on this platform’ ? What am I missing? Why the size of the image is so that large? It exceeded 3GB but the size of the project is 88MB.   Thank you in advance :)  
asked
1 answers
0

Hi YONGPYO JANG, 

I have seen this error while running on Windows. Something seems wrong with the way how Windows preserves the permissions on the files,other workaround is to run the Docker build on Linux (e.g. in a VM).

answered