@@ -224,8 +224,8 @@ func (d *Pool) BuildAndRun(name, dockerfilePath string, env []string) (*Resource
224
224
// RunWithOptions starts a docker container.
225
225
// Optional modifier functions can be passed in order to change the hostconfig values not covered in RunOptions
226
226
//
227
- // pool.Run (&RunOptions{Repository: "mongo", Cmd: []string{"mongod", "--smallfiles"}})
228
- // pool.Run (&RunOptions{Repository: "mongo", Cmd: []string{"mongod", "--smallfiles"}}, func(hostConfig *dc.HostConfig) {
227
+ // pool.RunWithOptions (&RunOptions{Repository: "mongo", Cmd: []string{"mongod", "--smallfiles"}})
228
+ // pool.RunWithOptions (&RunOptions{Repository: "mongo", Cmd: []string{"mongod", "--smallfiles"}}, func(hostConfig *dc.HostConfig) {
229
229
// hostConfig.ShmSize = shmemsize
230
230
// })
231
231
func (d * Pool ) RunWithOptions (opts * RunOptions , hcOpts ... func (* dc.HostConfig )) (* Resource , error ) {
@@ -334,7 +334,7 @@ func (d *Pool) RunWithOptions(opts *RunOptions, hcOpts ...func(*dc.HostConfig))
334
334
335
335
// Run starts a docker container.
336
336
//
337
- // pool.Run("mysql", "5.3", []string{"FOO=BAR", "BAR=BAZ"})
337
+ // pool.Run("mysql", "5.3", []string{"FOO=BAR", "BAR=BAZ"})
338
338
func (d * Pool ) Run (repository , tag string , env []string ) (* Resource , error ) {
339
339
return d .RunWithOptions (& RunOptions {Repository : repository , Tag : tag , Env : env })
340
340
}
0 commit comments