r/AskProgramming • u/Neuromante • Jun 12 '20
Why is docker a thing?
I'm genuinely curious here, not trying to ask a loaded question, is just that... I don't really understand why is so widespread, so I'll just go with my particular case:
I'm on $Big_Corp. We have many stuff obviously standardized, and for our web applications we have been told to use a dockerized database. I started a small project from scratch and to connect to a $Standard_Database I just downloaded $Standard_Database, installed it on my machine, configured it and began working with it.
Of course, this is on a development environment, so more or less, who cares how I got this set up, but I'm approaching a point in which I got to "get real" with the database, which implies setting up a docker image of $Standard_Database.
Now, for what I've seen and I'm reading, this is just some kind of container that will (in theory) only have that database, with docker itself running in memory for I don't really understand what. From the point of my application and my database-access program, I will only have to change the database connection info and I would be good to go.
I kind of understand a potential need for having independent systems and all that, but, as someone who really love continuous integration and has spent lot of time making processes that deploy cleanly, I don't really see the point on making a new layer just to have this database for this application.
Maybe I'm having here a too narrow view and in a bigger org is needed to keep things tidy (thus my case of use would be just "the way corporate has told us to do things", maybe I'm missing something here. And thus, I'm asking here about it.
104
u/truh Jun 12 '20
Have you ever heard of the phrase works on my machine? Docker does a fairly good job of solving those issues.