DEV Community

Discussion on: Stop using virtualenv, pyenv, nvm, goenv and Use Docker images

Collapse
 
varjmes profile image
james

I'd disagree that version managers are obsolete. I have great success with nvm and brew, with no complications. When I use Docker, a lot of RAM is used. I have a 32GB Mac and yet it still slows things down.

I do use Docker for some things successfully, but I can't imagine running all these different containers to do my day-to-day work. Wherever possible, I run things locally on my machine as close to the metal as possible.

Thanks for the post, I'm curious what your day-to-day looks like with all of these different images running?

Collapse
 
muasx88 profile image
Muas

agree

Collapse
 
bashar3a profile image
Bashar Abdullah

This! Docker is resource hungry and I constantly need to go back and cleanup storage.

I use Docker, but not for these cases.

Collapse
 
javidjms profile image
Javid Mougamadou

I have also a 32 GB RAM Mac and I assigned 12-14 GB RAM for Docker (+2 GB for Swap).

I agree that the Docker Virtual Machine (Mac/Windows) could take a lot RAM. In my case 12 RAM is used whether there is any container or not.

For Linux, It takes all of the available Memory. So if for some reason there is a High Memory or Out of Memory, the System crash. For Mac/Windows, only Docker crash and then restart.

Everyday, I run a fullstack containers (api, app, db, broker, etc ) with at least 10 containers.

I know that there is a limitation with the number of containers on the machine (depend on the memory and cpu) but If you want, you can control the memory and the cpu usage of your containers.

If these containers launch dev-servers (like API or APP) so it is the same to launch manually servers on the OS because it is not costly.

I noticed that containers take a lot of RAM when building the image. In my case, I build the image only once and then bind it with a volume.

If you have a single app with few dependencies, so docker could be useless.

Collapse
 
swagwik profile image
Sattwik Sahu

32 GB RAM!!! I have begun questioning my mere existence... I got a 3GB RAM junkbox 😒😒

Thread Thread
 
varjmes profile image
james

Haha yeah. This was provided by work, I've never had so much RAM before!

Thread Thread
 
javidjms profile image
Javid Mougamadou

Same for me

Collapse
 
nasimuddin profile image
Nasim Uddin

For Linux, It takes all of the available Memory. So if for some reason there is a High Memory or Out of Memory, the System crash

Are you sure about that? I have used docker in Ubuntu. It almost used around 500mb memory. Though I don't always use docker. But docker is very close to linux. Correct me if I am wrong. And linux has a way to kill the process if it's using too much ram.

Thread Thread
 
190245 profile image
Dave

You're indeed correct.

Sincerely,
Another Ubuntu Docker user

Collapse
 
yoursunny profile image
Junxiao Shi

My servers are mostly 1GB or 2GB, so I can't fit many containers there.

Laptop is 8GB and no Docker. I have everything on Windows or in WSL2.

I wish I can afford 32GB.