import (
"github.com/strapsi/go-docker"
)
type PsOptions struct {
All bool
FilterNames []string
}
type RunOptions struct {
Image string
Name string
Force bool
Env map[string]string
}
// returns existing containers
docker.Ps(options *docker.PsOptions)
// create and start container
docker.Run(options *docker.RunOptions)
- added environment variables for docker run
- added force option to force an existing container to be removed
- added filter by name option to docker ps
- added docker ps command
- removed test commands
- initialized package with test commands