Exemplo n.º 1
0
func startInBackground(a provision.App, c container, imageId string, w io.Writer, started chan bool) {
	_, err := start(a, imageId, w)
	if err != nil {
		log.Errorf("error on start the app %s - %s", a.GetName(), err)
		started <- false
		return
	}
	if c.ID != "" {
		if a.RemoveUnit(c.ID) != nil {
			removeContainer(&c)
		}
	}
	started <- true
}