diff --git a/glue/main.go b/glue/main.go index ef2bbcf..12ea6b6 100644 --- a/glue/main.go +++ b/glue/main.go @@ -231,6 +231,11 @@ func (p *Processor) Create(appTemplate apps.App) error { } } + err = container.Start() + if err != nil { + return fmt.Errorf("failed to start container: %v", err) + } + // Wait for the app to be created err = p.waitForApp() if err != nil { @@ -275,8 +280,7 @@ func (p *Processor) Create(appTemplate apps.App) error { } } - err = container.Start() - return fmt.Errorf("failed to start container: %v", err) + return nil } // Register registers app without creating a container for it