Why so many docker images? It eats up my disk space and doesn’t clean up after itself. Every time I run python ru_docker.py it creates a whole new set of images. Should I just be using docker run once it is set up?
ALSO There is no persistent storage with the docker container so every time I restart the app I have to enter all of my envrionment variables again. Is that correct? or am i missing something? Am I supposed to get it running once then deploy to (wherever)? I don’t see any documentation about why the deploy button exists.
I think this is just docker being docker. Use this command with caution but it is the best I’ve found for totally clearing out your unused docker images. It removes:
- All stopped containers
- All networks not used by at least one container
- All Docker images not attached to a running container
- All volumes not attached to a running container
Kind of a nuclear option but very effective in reclaiming your disk space (and sanity)
sudo docker system prune -a --volumes --force
The setup process should pull in the environment variables from your .env file before building, so if you keep that updated and correct, those env variables should be baked into the resulting containers. I have noticed some glitches with this, however. One is that they don’t seem to show up in the webUI (even though I believe they are set when built this way). And in general, even though it’s annoying, I have found that setting them directly in the web UI works better.
If these issues become too annoying, you could use the python installation method.