We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa0720f + 8566daa commit 0fedddbCopy full SHA for 0fedddb
cmd/compose/up.go
@@ -55,16 +55,10 @@ type upOptions struct {
55
56
func (opts upOptions) apply(project *types.Project, services []string) error {
57
if opts.noDeps {
58
- enabled, err := project.GetServices(services...)
+ err := withSelectedServicesOnly(project, services)
59
if err != nil {
60
return err
61
}
62
- for _, s := range project.Services {
63
- if !utils.StringContains(services, s.Name) {
64
- project.DisabledServices = append(project.DisabledServices, s)
65
- }
66
67
- project.Services = enabled
68
69
70
if opts.exitCodeFrom != "" {
0 commit comments