Comment on Should I move to Docker?
SpaceCadet@feddit.nl 11 months agowhat would I gain from docker or other containers?
Reproducability.
Once you’ve built the Dockerfile or compose file for your container, it’s trivial to spin it up on another machine later. It’s no longer bound to the specific VM and OS configuration you’ve built your service on top of and you can easily migrate containers or move them around.
Dyskolos@lemmy.zip 10 months ago
But that’s possible with a vm too. Or am I missing something here?
twei@feddit.de 10 months ago
If you update your OS, it could happen that a changed dependency breaks your app. This wouldn’t happen with docker, as every dependency is shipped with the application in the container.
Dyskolos@lemmy.zip 10 months ago
Ah okay. So it’s like an escape from dependancy-hell… Thanks.
uzay@infosec.pub 10 months ago
Apart from the dependency stuff, what you need to migrate when you use docker-compose is just a text file and the volumes that hold the data. No full VMs that contain entire systems because all that stuff is just recreated automatically in seconds on the new machine.
Dyskolos@lemmy.zip 10 months ago
Ok, that does save a lot of overhead and space. Does it impact performance compared to a vm?
felbane@lemmy.world 10 months ago
If anything, containers are less resource intensive than VMs.