CLI tool for spawning and running containers on Windows according to the OCI specification
Go C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd
hcs
integration
network
runtime
vendor
.gitignore
Gopkg.lock
Gopkg.toml
LICENSE
NOTICE
README.md

README.md

winc

winc is a CLI tool for spawning and running containers on Windows according to the OCI specification.

Building

Requirements

  • Golang
    • Make sure you have set a GOPATH
  • Git
  • mingw-w64
    • Select x86_64 as the target architecture
    • After install, ensure that gcc.exe is in your PATH

To clone and build winc.exe:

go get -d code.cloudfoundry.org/winc/...
cd $GOPATH/src/code.cloudfoundry.org/winc
go build ./cmd/winc

Testing

Set the WINC_TEST_ROOTFS environment variable to the path to a container image, e.g. in powershell to test with the microsoft/windowsservercore Docker image:

$env:WINC_TEST_ROOTFS = "docker:///microsoft/windowsservercore)

To install Ginkgo and run the tests:

go get github.com/onsi/ginkgo/...
cd $GOPATH/src/code.cloudfoundry.org/winc
ginkgo -r -race -keepGoing

Using

Check out winc bosh release readme for creating new containers using winc.