Start starts a process inside the container. Returns error if process fails to start. You can track process lifecycle with passed Process structure.
(process *Process)
| 203 | // Start starts a process inside the container. Returns error if process fails |
| 204 | // to start. You can track process lifecycle with passed Process structure. |
| 205 | func (c *Container) Start(process *Process) error { |
| 206 | c.m.Lock() |
| 207 | defer c.m.Unlock() |
| 208 | return c.start(process) |
| 209 | } |
| 210 | |
| 211 | // Run immediately starts the process inside the container. Returns an error if |
| 212 | // the process fails to start. It does not block waiting for the exec fifo |