Skip to content
Gopker is Wrapper for Docker API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vendor
.gitignore
README.md
container.go
container_test.go
docker.go
docker_test.go

README.md

Gopker is Wrapper for Docker API, it's simplify your tests with capabilities like NewContainer, StartContainer and StopContainer.

Simple usage example:

All operations are blocking.

Create Container with Port and Volume bindings (port|volume bindings are fluent, you can chain it without worry)

Install Package:

go get github.com/blueskan/gopker

Import

import(
    . "github.com/blueskan/gopker"
)

Start container

containerSetup, err := NewContainer("nginx")

if err != nil {
    panic(err)
}

container, err := containerSetup.
	PortMapping("8080", "80").
	Volume("/var/www").
	Start()

Stop container

container.Stop()

Util: List Containers

containers, err := gopker.Containers()

// just do whatever you want
You can’t perform that action at this time.