Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run a command without entry point

Tags:

docker

How can I run a command against a container and tell docker not to run the entry point? e.g.

docker-compose run foo bash

The above will run the entry point of the foo machine. How to prevent it temporarily without modifying Dockerfile?

like image 637
Handsome Nerd Avatar asked Oct 22 '25 03:10

Handsome Nerd


1 Answers

docker-compose run --entrypoint=bash foo bash

It'll run a nested bash, a bit useless, but you'll have your prompt.

like image 129
Rémy Avatar answered Oct 24 '25 16:10

Rémy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!