| 20 | } |
| 21 | |
| 22 | func (self *BaseRPC) Start(opts *ActionOpts, success *bool) error { |
| 23 | containerId := opts.ContainerId |
| 24 | log.WithFields(log.Fields{ |
| 25 | "container_id": containerId, |
| 26 | "name": self.base.GetName(), |
| 27 | }).Info("Starting container") |
| 28 | |
| 29 | err := self.base.Start(&AppConfig{ContainerId: containerId}) |
| 30 | |
| 31 | if err != nil { |
| 32 | return err |
| 33 | } |
| 34 | *success = true |
| 35 | |
| 36 | log.WithFields(log.Fields{ |
| 37 | "container_id": containerId, |
| 38 | "name": self.base.GetName(), |
| 39 | }).Info("Container started") |
| 40 | |
| 41 | return nil |
| 42 | } |
| 43 | |
| 44 | func (self *BaseRPC) Status(opts *ActionOpts, state *docker.State) error { |
| 45 | containerId := opts.ContainerId |