File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,10 @@ func startContainer(conf *config) (*ConnInfo, error) {
86
86
func runContainer (conf * config , pool * dockertest.Pool ) (* dockertest.Resource , error ) {
87
87
// pulls an image, creates a container based on it and runs it
88
88
container , err := pool .RunWithOptions (& dockertest.RunOptions {
89
- Repository : conf .service .ImageRepository (),
90
- Tag : conf .service .ImageTag (),
91
- Env : conf .service .Environment (),
89
+ Repository : conf .service .ImageRepository (),
90
+ Tag : conf .service .ImageTag (),
91
+ Env : conf .service .Environment (),
92
+ ExposedPorts : conf .service .StartupPorts (),
92
93
}, func (config * docker.HostConfig ) {
93
94
config .AutoRemove = true // remove storage after container exits
94
95
config .RestartPolicy = docker.RestartPolicy {Name : "no" }
You can’t perform that action at this time.
0 commit comments