Question

Why using bash instead docker-compose ?

Posted February 25, 2021 369 views
NginxDockerUbuntu 18.04Flask

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

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.

×
Submit an Answer
1 answer

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