func StartApplication(app *entities.Application) error {
	app.LoadServices()
	networkName := network.NameForDocker(app)
	network.Create(networkName)
	for _, service := range app.Services {
		swarm_service.Create(swarm_service.SpecOptions{
			Service:     &service,
			NetworkName: networkName,
		})
	}
	return nil
}
StartApplication starts a whole application
package swarm
import (
	"context"
	"github.com/docker/docker/api/types"
	"github.com/docker/docker/api/types/events"
	"github.com/docker/docker/api/types/filters"
	"github.com/docker/docker/client"
	"github.com/dokkur/swanager/core/entities"
	"github.com/dokkur/swanager/core/swarm/network"
	swarm_service "github.com/dokkur/swanager/core/swarm/service"
)
const ServiceStatusNotExists = "not_exists"