Answer the question
In order to leave comments, you need to log in
Where can I get a detailed step-by-step tutorial on solving a real-life problem with Docker?
I'm trying to master Docker - I ran into a misunderstanding of why it is needed at all.
I understand that if so many people use it, then for some reason it is still needed. But I want a real life example.
Some common case that is easier to solve with Docker than without Docker.
And so that even a child can understand :) I’ll
explain the context: I do web development mainly on Windows 7. In especially “hard” cases, when Windows doesn’t work at all, I do something remotely, on a VPS under Ubuntu Server, well, or locally in Virtualbox.
As far as I understood from the tutorials, Docker can help me with this, but I have not yet figured out exactly how.
If there is a link to a good step-by-step tutorial that can help - I will be grateful.
Answer the question
In order to leave comments, you need to log in
There is a postgres + php + redis project , I
generate a docker compose file using this service https://phpdocker.io/generator (I'm too lazy to think myself).
then I push the docker file to the project repository. (more precisely already the folder will be).
Give a colleague access to the repository. It clones and runs the docker-compose up command
and that's it. It launches the necessary containers. The application starts working immediately.
A colleague will not cackle that he now has mysql on his computer, and he does not want to install postgres because it is a chore.
or redis has a different version, and so on.
You can also launch your project in easy at any workplace.
In general, a cool thing in development.
About the use on the sale - xs
The people operate a bunch of servers without dockers and norms.
Real example - for days I was asked to make changes in the project, the stack is not typical for me, nginx/postgres/puff7.2. Despite the fact that I had to do it on my home machine, win10. So I have Apache/muscle/puff 7.1 configured.
I put the containers on nginx/postgres/puff 7.2., crushed the local apache so that it would not interfere on port 80 and that's it, I can work with a completely different stack, and all this is "inside" on linux, with all possible apt-get installs and so on. Finished - turned off - forgot. Or reconfigured containers. Nothing has changed in the system at all.
I understand that if so many people use it, then for some reason it is still needed. But I want a real life example.
Everything is simple.
In order to run multiple instances of the application with the same settings (the same path, the same libs) - the container is much cheaper and faster in terms of resources than individual virtual machines.
In the case when it's not 1-10, but 100-1000, the speed and cost are NOTICEABLE for business. Therefore, it is in high demand.
But before the advent of docker, even after setting it up, it was extremely inconvenient for ordinary users to use it.
And when docker + dockerhub appeared, and then also kubernetes-openshift, it took off well in the enterprise, and is actively in demand.
There are a lot of abuses too. But the main point is cheapness in terms of resources.
Some common case that is easier to solve with Docker than without Docker.
Need a real life challenge? Well, for example.
My developers need Jira for various tests. Jira they may need different versions. They may need it for an hour or, for example, for a week. Sometimes they need two jirs, one with mysql and one with postgres. Or something like that.
With the docker, I roll out the jira of the required version with the required base, in 2-3 minutes. The whole wrapper is standardized, all settings are the same.
Yes, of course, I prepared the containers in advance, but in fact, everything has been assembled there for a couple of years on GitLab by scripts, automatically, and I almost don’t spend time on this.
As I understand it, docker is a lightweight version of virtualbox. The essence is the same, but takes up less disk space. Very handy for development. For use on the sale, kmk, so-so idea.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question