Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
wannabe5325yLet me know when you find out. I have gotten by viewing it as a sandboxed virtual environment up until now. I have also been told that is incorrect as all hell, but it has managed 99% of my conversations/observations and minor implementations with it.
-
Just give this "fun" interactive course 10mins and you're up to speed.
https://katacoda.com/courses/... -
@heyheni thanks now I understand how to reuse data (have persistent accessible data) with docker, mate. It helped a lot.
-
@M1sf3t You just know that because I made a Makefile to abstract away docker-compose commands :p
Make has nothing to do with docker xD -
Docker allows you to run a private environment, so every app you run in it (redis, mysql, webservers, your own app) has its own filesystem and network connections.
This allows you to have an application run in a ubuntu container and the other in an alpine environment. This also means an application's OS dependencies are put in a container, once you remove the container, all those dependencies are gone too.
Why is this useful? Scaling
My Go application is handling lots of traffic, so I spin up 5 identical containers with my application so that a load balancer can distribute traffic. Once the traffic is gone, I can delete the 4 containers and keep 1 running.
All these containers have their own FS and network, so killing a few does not affect other containers.
You can also use containers to try out an application and then throw it away!
Wanna try out redis? Try docker run redis and you have a redis container, done? docker rm it and redis is gone again -
It's your app server in a single zip file. Docker can extract and execute those zip files on a single machine w/o letting either of the application know about its neighbours.
Dockerfile is a "smart" shell script to set up those zip files.
That's roughly it -
KDSBest7755yThere is one thing you need to know about docker. If you leave linux container things get crazy pretty fast!
-
KDSBest7755y@alexbrooklyn scaling was/is possible with vm images also. The rest I agree... I know vm images are slower and use more resources. Still...
-
Docker is a tool that saves 10 minutes for sysadmins at the expense of 5 hour work for developers
-
@alexbrooklyn i can definitely see the real world value in that! Thanks man, mind if I hit you up later on for some more questions regarding this in the event i get lost? :P it doesn't happen often and most of the time I find stuff online pretty well, but it would be nice to have someone that actually uses it in real life to gain more points of view on it
Related Rants
-
linuxxx105HUGE FUCKING DILEMMA FOR ME. I will probably get the chance of choosing a company phone soon (as in, next few...
-
vortexman10018Got a job interview today at my favorite company. Wish me luck.
-
Batburger12*Starts compile* ... ... can't find function foo ld exited with status code 1 *confused* *Reruns qmake* *Comp...
Dear diary:
It is 2020 and I still don't know shit about docker :3
I don't know how bad this is.....
rant
halp