Windows - cannot get the sample working

Trying to install docker, followed the instructions and tried the sample app.

[Docker version 19.03.5]

C:\Development\docker\doodle\cheers2019>docker build -t paulgarnham/cheers2019 .
Sending build context to Docker daemon 13.31kB
Step 1/9 : FROM golang:1.11-alpine AS builder
—> e116d2efa2ab
Step 2/9 : RUN apk add --no-cache git
—> Using cache
—> eae2795a0d4c
Step 3/9 : RUN go get github.com/pdevine/go-asciisprite
—> Using cache
—> 7a806e980272
Step 4/9 : WORKDIR /project
—> Using cache
—> fc70a2d5eba8
Step 5/9 : COPY cheers.go .
—> Using cache
—> 7d969b87f946
Step 6/9 : RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags ‘-extldflags “-static”’ -o cheers cheers.go
—> Running in 268b306ef7b5
container 268b306ef7b5aa98a32f37074a61bdeb6cfacd5f99fc4bf92c29261ed8551b70 encountered an error during CreateProcess: failure in a Windows system call: Unspecified error (0x80004005)
[Event Detail: failed to run runc create/exec call for container 268b306ef7b5aa98a32f37074a61bdeb6cfacd5f99fc4bf92c29261ed8551b70: exit status 1 Stack Trace:
–github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*container).startProcess
/go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:580
–github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime).runCreateCommand
/go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:471
–github.com/Microsoft/opengcs/service/gcs/runtime/runc.(*runcRuntime).CreateContainer
/go/src/github.com/Microsoft/opengcs/service/gcs/runtime/runc/runc.go:113
–github.com/Microsoft/opengcs/service/gcs/core/gcs.(*gcsCore).ExecProcess
/go/src/github.com/Microsoft/opengcs/service/gcs/core/gcs/gcs.go:351
–github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess
/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:637
–github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).execProcess-fm
/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:253
–github.com/Microsoft/opengcs/service/gcs/bridge.HandlerFunc.ServeMsg
/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:72
–github.com/Microsoft/opengcs/service/gcs/bridge.(*Mux).ServeMsg
/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:146
–github.com/Microsoft/opengcs/service/gcs/bridge.(*Bridge).ListenAndServe.func2.1
/go/src/github.com/Microsoft/opengcs/service/gcs/bridge/bridge.go:335
runtime.goexit
/usr/lib/go/src/runtime/asm_amd64.s:1333 Provider: 00000000-0000-0000-0000-000000000000] extra info: {“CommandArgs”:["/bin/sh","-c",“CGO_ENABLED=0 GOOS=linux go build -a -ldflags ‘-extldflags “-static”’ -o cheers cheers.go”],“WorkingDirectory”:"/project",“Environment”:{“GOLANG_VERSION”:“1.11.13”,“GOPATH”:"/go",“HOSTNAME”:“268b306ef7b5”,“PATH”:"/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"},“CreateStdInPipe”:true,“CreateStdOutPipe”:true,“CreateStdErrPipe”:true,“ConsoleSize”:[0,0],“OCISpecification”:{“ociVersion”:“1.0.1-dev”,“process”:{“user”:{“uid”:0,“gid”:0},“args”:["/bin/sh","-c",“CGO_ENABLED=0 GOOS=linux go build -a -ldflags ‘-extldflags “-static”’ -o cheers cheers.go”],“env”:[“PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,“HOSTNAME=268b306ef7b5”,“GOLANG_VERSION=1.11.13”,“GOPATH=/go”],“cwd”:"/project",“capabilities”:{“bounding”:[“CAP_CHOWN”,“CAP_DAC_OVERRIDE”,“CAP_FSETID”,“CAP_FOWNER”,“CAP_MKNOD”,“CAP_NET_RAW”,“CAP_SETGID”,“CAP_SETUID”,“CAP_SETFCAP”,“CAP_SETPCAP”,“CAP_NET_BIND_SERVICE”,“CAP_SYS_CHROOT”,“CAP_KILL”,“CAP_AUDIT_WRITE”],“effective”:[“CAP_CHOWN”,“CAP_DAC_OVERRIDE”,“CAP_FSETID”,“CAP_FOWNER”,“CAP_MKNOD”,“CAP_NET_RAW”,“CAP_SETGID”,“CAP_SETUID”,“CAP_SETFCAP”,“CAP_SETPCAP”,“CAP_NET_BIND_SERVICE”,“CAP_SYS_CHROOT”,“CAP_KILL”,“CAP_AUDIT_WRITE”],“inheritable”:[“CAP_CHOWN”,“CAP_DAC_OVERRIDE”,“CAP_FSETID”,“CAP_FOWNER”,“CAP_MKNOD”,“CAP_NET_RAW”,“CAP_SETGID”,“CAP_SETUID”,“CAP_SETFCAP”,“CAP_SETPCAP”,“CAP_NET_BIND_SERVICE”,“CAP_SYS_CHROOT”,“CAP_KILL”,“CAP_AUDIT_WRITE”],“permitted”:[“CAP_CHOWN”,“CAP_DAC_OVERRIDE”,“CAP_FSETID”,“CAP_FOWNER”,“CAP_MKNOD”,“CAP_NET_RAW”,“CAP_SETGID”,“CAP_SETUID”,“CAP_SETFCAP”,“CAP_SETPCAP”,“CAP_NET_BIND_SERVICE”,“CAP_SYS_CHROOT”,“CAP_KILL”,“CAP_AUDIT_WRITE”]}},“root”:{“path”:“rootfs”},“hostname”:“268b306ef7b5”,“mounts”:[{“destination”:"/proc",“type”:“proc”,“source”:“proc”,“options”:[“nosuid”,“noexec”,“nodev”]},{“destination”:"/dev",“type”:“tmpfs”,“source”:“tmpfs”,“options”:[“nosuid”,“strictatime”,“mode=755”,“size=65536k”]},{“destination”:"/dev/pts",“type”:“devpts”,“source”:“devpts”,“options”:[“nosuid”,“noexec”,“newinstance”,“ptmxmode=0666”,“mode=0620”,“gid=5”]},{“destination”:"/sys",“type”:“sysfs”,“source”:“sysfs”,“options”:[“nosuid”,“noexec”,“nodev”,“ro”]},{“destination”:"/sys/fs/cgroup",“type”:“cgroup”,“source”:“cgroup”,“options”:[“ro”,“nosuid”,“noexec”,“nodev”]},{“destination”:"/dev/mqueue",“type”:“mqueue”,“source”:“mqueue”,“options”:[“nosuid”,“noexec”,“nodev”]},{“destination”:"/dev/shm",“type”:“tmpfs”,“source”:“shm”,“options”:[“nosuid”,“noexec”,“nodev”,“mode=1777”]}],“linux”:{“resources”:{},“namespaces”:[{“type”:“mount”},{“type”:“network”},{“type”:“uts”},{“type”:“pid”},{“type”:“ipc”}],“maskedPaths”:["/proc/asound","/proc/acpi","/proc/kcore","/proc/keys","/proc/latency_stats","/proc/timer_list","/proc/timer_stats","/proc/sched_debug","/proc/scsi","/sys/firmware"],“readonlyPaths”:["/proc/bus","/proc/fs","/proc/irq","/proc/sys","/proc/sysrq-trigger"]},“windows”:{“layerFolders”:[“C:\ProgramData\Docker\lcow\e32827ed1383c37574f878b8d449975f4b279c652e1a7ac8047bb67ed0c8d64a”,“C:\ProgramData\Docker\lcow\7035f955e4caa048bb9c548d3a645b4c8aee6440957b418c0ddf4a28cd9ae93b”,“C:\ProgramData\Docker\lcow\a0a3084672729300f4714a1b7d75029aff57fcf173d8d74e2d7adcf31102222d”,“C:\ProgramData\Docker\lcow\4f3688414bf9f51c1fd38822ccc4cfb1d23de75144222f84c75bc01ba9789ddc”,“C:\ProgramData\Docker\lcow\9febc48ae22af457b6810b701151dcde50ba9b702706a79fd0e0e30f60af733e”,“C:\ProgramData\Docker\lcow\136251b28e332abd7252c94872c75b73e094ec780bd22cf925c9fca1fbd572a3”,“C:\ProgramData\Docker\lcow\67c26beb8e144793f85792a8597a3ed4735a8247984abfe15fae64f46a72999d”,“C:\ProgramData\Docker\lcow\aea612d777e75b757056bfa231f4f5231fb79daad224f7584a79957fbdea1992”,“C:\ProgramData\Docker\lcow\e05d0a20101891b0a776dde8ee1335fac19fd76152753a20bb6666f8e21aefd3”,“C:\ProgramData\Docker\lcow\268b306ef7b5aa98a32f37074a61bdeb6cfacd5f99fc4bf92c29261ed8551b70”],“hyperv”:{},“network”:{“endpointList”:[“EC916462-D00E-4B6D-AC32-99EF09BC3CF5”],“allowUnqualifiedDNSQuery”:true}}}}

I run it to the same problem, i followed the sample guid for windows:

Step 1/9 : FROM golang:1.11-alpine AS builder
1.11-alpine: Pulling from library/golang
no matching manifest for windows/amd64 10.0.18362 in the manifest list entries

I am new to docker, so dont know what todo.

To fix “no matching manifest for windows/amd64 10.0.18362 in the manifest list entries” Start Docker Desktop -> click on icon in task bar -> Settings > Deamon -> Experimental Checked. Restart and build.

I had the same issue. To fix it try switching to Linux containers:

  1. Click on icon of Docker Desktop in system tray
  2. “Switch to Linux Containers…”