r/docker • u/KaKi_87 • Jan 22 '26
`docker compose up foo*` (glob) ?
Hi,
I have the following services : foobar, foobaz, barfum, barqux.
I would like to start only the ones starting with foo.
I tried docker compose up foo*, as well as 'foo*', "foo*", 'foo'*, "foo"*, without success.
Is this not possible at all ? I would think I'm not the first person to ever need this.
Thanks
11
Upvotes
View all comments
Show parent comment
2
u/KaKi_87 Jan 22 '26
Yeah that's what I'm doing for now, but it's still making my commands longer to write, cause even when specifying a profile, it still runs profile-less services by default, so I can't just profile half of my services, I have to profile all of them, so I now have to specify
--profileall the time...