Question

Why using bash instead docker-compose ?

Why are you building the Dockerfile, and create the container with a bash script instead using docker-compose or docker stack ?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @squadz,

Are you referring to a Tutorial or some other question? Or is it just a general question that you are asking, it’s not really clear.

Additionally, looking at the official Docker Documentation they are showing examples with bash scripts and docker-compose as well:

https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

Regards, KFSys