Problem with "Build and test Docker on Windows"

Hi! I’m new to Docker and I have a problem with building and running docker using this instructions:
https://docs.docker.com/opensource/project/software-req-win/


Issue:

Running:

docker run --name out nativebuildimage sh -c 'cd /c/go/src/github.com/docker/docker; hack/make.sh binary`

results in:

Program 'make.sh' failed to run: Class not registeredAt line:1 char:46
+ sh -c cd /c/go/src/github.com/docker/docker; hack/make.sh binary
+                                              ~~~~~~~~~~~~~~~~~~~.
At line:1 char:46
+ sh -c cd /c/go/src/github.com/docker/docker; hack/make.sh binary
+                                              ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedEx
   ception
    + FullyQualifiedErrorId : NativeCommandFailed

OS/App version:

  • I’m using Windows 10 Pro version 1607

  • running this in Windows PowerShell as Administrator

docker version

Client:
 Version:      1.13.1
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 08:47:51 2017
 OS/Arch:      windows/amd64

Server:
 Version:      1.13.1
 API version:  1.26 (minimum version 1.24)
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 08:47:51 2017
 OS/Arch:      windows/amd64
 Experimental: true

docker info

Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 17
Server Version: 1.13.1
Storage Driver: windowsfilter
 Windows:
Logging Driver: json-file
Plugins:
 Volume: local
 Network: l2bridge l2tunnel nat null overlay transparent
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 14393 (14393.693.amd64fre.rs1_release.161220-1747)
Operating System: Windows 10 Pro
OSType: windows
Architecture: x86_64
CPUs: 4
Total Memory: 15.95 GiB
Name: ***
ID: SC5L:5DY4:TERN:3LZS:NFBM:PMC6:YMAI:I7GX:HVGK:PVX5:YZIV:U4CD
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: -1
 Goroutines: 18
 System Time: 2017-02-10T13:32:10.7559146+01:00
 EventsListeners: 0
Registry: https:// index.docker.io/v1/
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Steps to reproduce:

git clone https:// GitHub - moby/moby: The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems

cd docker

docker build -t nativebuildimage -f .\Dockerfile.windows .

docker run --name out nativebuildimage sh -c ‘cd /c/go/src/github.com/docker/docker; hack/make.sh binary’


I want to contribute to Docker and I’m having a bad start. I’d be vary grateful for help.

Those instructions on the doc site are wrong, please see the Dockerfile: https://github.com/docker/docker/blob/master/Dockerfile.windows

1 Like

Oh, ok. Thank you. :slight_smile:

It’d be great if someone updated the website.