GitXplorerGitXplorer
m

go-dockrun

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
49f64ef099eaa6b63fd0d4040896d2c702eb06a6

switch logs to separate stdout/stderr's

mmatthewmueller committed 7 years ago
Unverified
b0589c4e34be666bb58c59780ec503933a26f0fa

add support for stdio

mmatthewmueller committed 7 years ago
Unverified
6ec32feba85ea4de4aee60f9de6fac5c7a350ce5

update readme

mmatthewmueller committed 7 years ago
Unverified
9bba94010808c5dc33b09ce34ae565d636c830c0

rename container.Wait to container.Check and add a new container.Wait function.

mmatthewmueller committed 7 years ago
Unverified
4afdbd36278d4455746c414d1724c8862dc52766

fix install

mmatthewmueller committed 8 years ago
Unverified
edac0927f8ca8f0b387c3c8e4b9316502c9effb4

fix ref

mmatthewmueller committed 8 years ago

README

The README file for this repository.

dockrun

GoDoc

Simple container testing

Install

go get github.com/matthewmueller/go-dockrun

Example

client, err := dockrun.New()
if err != nil {
  log.Fatal(err)
}

container, err := client.
  Container("yukinying/chrome-headless:latest", "chromium").
  Expose("9222:9222").
  Run(ctx)
if err != nil {
  log.Fatal(err)
}
defer container.Kill()

err = container.Check(ctx, "http://localhost:9222")
if err != nil {
  log.Fatal(err)
}

License

MIT