I used to reinstall the software every time I had a new server, but then I found that docker, felt good. So I read some tutorials, understood some basic concepts, and also tried to make my own container based on the image of debian. I installed all kinds of software, and then submitted it, and the capacity reached 4GB. At first, I thought it was nothing, but later I thought something was wrong. It turns out that this is the wrong usage (as if many blogs teach you to submit), and you have to use Dockerfile to make an image.
question:
I think someone said to separate each software and put it in a container, assuming that my project is written by python, using nginx,mongodb,Redis, etc., should I run a software in a container and operate it through the port?
I want to know how to use docker, reasonably if you decide to use it in an actual project.
if a software runs in a container, is it all made of Dockerfile? the software needs to be upgraded, and then submit it, so that it can also be returned, and then the configuration file is also modified to submit it. This is the difference and usage between Dockerfile and commit that I can think of at present.