compiling docker on win64 using go

243 Views Asked by At

    C:\Go\src\pkg\github.com\docker\docker>go build
    # github.com/docker/docker/pkg/system
    pkg\system\meminfo_unsupported.go:6: undefined: ErrNotSupportedPlatform
    pkg\system\stat_unsupported.go:7: undefined: syscall.Stat_t
    pkg\system\stat_unsupported.go:12: undefined: syscall.Stat_t
    pkg\system\utimes_unsupported.go:8: undefined: ErrNotSupportedPlatform
    pkg\system\utimes_unsupported.go:12: undefined: ErrNotSupportedPlatform
    pkg\system\xattrs_unsupported.go:6: undefined: ErrNotSupportedPlatform
    pkg\system\xattrs_unsupported.go:10: undefined: ErrNotSupportedPlatform
     # github.com/docker/docker/pkg/term
    pkg\term\term.go:16: undefined: Termios
    # github.com/docker/libcontainer/devices
    ..\libcontainer\devices\devices.go:73: undefined: syscall.Stat_t

what am I missing is it syscal pkg which is not found any one else came with this

1

There are 1 best solutions below

3
On

I havn't taken the time to try it out yet, but you probably want to read https://ahmetalpbalkan.com/blog/compiling-docker-cli-on-windows/