I actually have a problem when I try to execute a command in my shell script to start my docker container.

I'm running :

docker-compose up

The command works well but before being executed and seeing the log output, it display the help command like if I only ran


The fact is that I don't want to mute the function log using >/dev/null because I need to see the log.

I tried, using eval, exec, assign a cast string of the command to a variable...

Unfortunately docker-compose is not an alias. I'm getting the problem not only with docker-compose but also others clis or global installed npm-packages like "pm2"

Any idea to solve this ?

closed as unclear what you're asking by Kusalananda Mar 29 at 8:55

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Is docker-compose an alias maybe? – Kusalananda Jan 19 '17 at 11:58
  • Put type docker-compose in the script to ensure you're running the command you expect. – Barmar Jan 19 '17 at 20:25
  • Putting this question on hold as "unclear" as original user never came back with requested info. – Kusalananda Mar 29 at 8:55

Browse other questions tagged or ask your own question.