Folks, I have a node.js script running on my Windows machine that uses the dockerode npm package to talk to docker on said box and starts and kills docker containers.
However, after the containers have been killed off, docker still holds on to the memory that it blocked for those containers and this means downstream processes fail due to lack of RAM.
To counter this, I have powershell scripts to start docker desktop and to kill docker desktop.
All of this is a horrid experience.
On my Mac, I just use Colima with Portainer and couldn't be happier.
I've explored some options to replace Docker Desktop and it seems Rancher Desktop is a drop-in replacement for Docker Desktop, including the docker remote API.
- Is this true? Is Rancher Desktop that good of a drop-in replacement?
- Does Rancher Desktop better manage RAM for containers that have been killed off? Or does it do the same thing as Docker Desktop and hold on to the RAM?
Are there other options which I'm not thinking of which might solve my problems? I've seen a few alternatives but haven't tried them yet -
moby,
containerd,
podman
I don't actually need the Docker Desktop interface. So pure CLI docker would also just work. How are you all running pure docker on Windows boxes?
Part of what you’ve described is market economics. They want your loyalty and they want to track your purchases to sell that data to advertisers. Do they need an app for that? Absolutely not. They can and do host websites with the same deals and all you have to do is login. The reason they push you to their app is because either the app is something they spent a bunch of money on and want to increase customer adoption. Or, they have added massive new tracking capabilities and want to spy on their users on behalf of advertisers, so they need you on their app.
None of this is related to the technical aspects of this question. In fact, most of these companies would resist you installing their app on an “app server” simply because then they wouldn’t be able to track your location and other phone details easily. Defeating the purpose of your idea.
Oh, and as for the watermelon - there’s a sweet spot between the prices which is usually $5 if you use their loyalty card and not their app. That’s the price you pay for your phone’s privacy and resources - a buck. Not a fair trade, but it is what it is.
p.s. I hear you about the three prices thing. It’s frustrating. Grocery shopping is not simple. It’s all about hunting for deals and accepting the time vs money trade off. I’m sorry you are in this situation. I am too.