Report this

What is the reason for this report?

Why using bash instead docker-compose ?

Posted on February 25, 2021

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



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!

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.