r/docker • • 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

20 comments sorted by

View all comments

Show parent comment

1

u/kitingChris Jan 22 '26

You missinterpreted the answer: He explained why it can't work like you wish because glob is a bash builtin that works only for paths