diff --git a/local/convergence.go b/local/convergence.go index bc5b89fc..b47899dd 100644 --- a/local/convergence.go +++ b/local/convergence.go @@ -223,6 +223,9 @@ func (s *local) recreateContainer(ctx context.Context, project *types.Project, s func setDependentLifecycle(project *types.Project, service string, strategy string) { for i, s := range project.Services { if contains(s.GetDependencies(), service) { + if s.Extensions == nil { + s.Extensions = map[string]interface{}{} + } s.Extensions[extLifecycle] = strategy project.Services[i] = s } diff --git a/local/convert.go b/local/convert.go index 941ec95d..f0b834a7 100644 --- a/local/convert.go +++ b/local/convert.go @@ -101,7 +101,7 @@ func toMobyEnv(environment compose.MappingWithEquals) []string { if v == nil { env = append(env, k) } else { - env = append(env, fmt.Sprintf("%s=%s", k, v)) + env = append(env, fmt.Sprintf("%s=%s", k, *v)) } } return env