We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 183769b commit 0d3628bCopy full SHA for 0d3628b
containertest/docker.go
@@ -86,9 +86,10 @@ func startContainer(conf *config) (*ConnInfo, error) {
86
func runContainer(conf *config, pool *dockertest.Pool) (*dockertest.Resource, error) {
87
// pulls an image, creates a container based on it and runs it
88
container, err := pool.RunWithOptions(&dockertest.RunOptions{
89
- Repository: conf.service.ImageRepository(),
90
- Tag: conf.service.ImageTag(),
91
- Env: conf.service.Environment(),
+ Repository: conf.service.ImageRepository(),
+ Tag: conf.service.ImageTag(),
+ Env: conf.service.Environment(),
92
+ ExposedPorts: conf.service.StartupPorts(),
93
}, func(config *docker.HostConfig) {
94
config.AutoRemove = true // remove storage after container exits
95
config.RestartPolicy = docker.RestartPolicy{Name: "no"}
0 commit comments