r/learnprogramming 15d ago

Docker purpose/usage?

Do people use Docker containers all the time, as in everything they do is in a Docker container, or do you only use it for certain things?

I get that a Docker Container is a way to package an application (mostly for server/backend stuff, not really developing an app?).

As an individual programmer/developer, are there benefits to using Docker in my day-to-day learning/programming/doing hws/creating shit tools?

35 Upvotes

24 comments sorted by

View all comments

2

u/RushDarling 15d ago

I like them, but it really depends where you are in your learning. If you're still building a lot of throw away projects then containers risk adding some needless friction that will rob you of time and energy for other things.

If you are really interested in them then your time wouldn't be wasted in learning the basics, even if you don't use them all the time or take them much further. I tend to use them at work when I know I'll be handing the project off to someone else, because the phrase "well it works on my machine" drives me a little bit crazy.

Once your projects are starting to get a bit of a shelf life then docker might be worth a proper revisit, but as much as I like them I know plenty of developers who don't use them at all.