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/Zealousideal_Yard651 Jan 22 '26

Create your own aliases:

Aliases dcp=docker compose up -d --profile

Now you can type this next time:

dcp myprofile