-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
Description
Hi, I imagine a few people have asked this but I couldn't find an existing request...
When running one-off containers via run, it'd be nice to have the --build option to rebuild the image first. This currently exists in the up command, but the up command doesn't have the --rm option.
Can definitely live without, just felt odd that one command didn't have both options.
Current:
docker compose build && docker compose run --rm myapp echo hello
Desired:
docker compose run --rm --build myapp echo hello
Reactions are currently unavailable