Search
Searches topics and replies. Every word has to appear in the post.
10 posts found.
| Post | Posted |
|---|---|
Yep, .env still said localhost. Changed to db and it connected. Resolved. | by sam |
Inside the web container, localhost is the web container. Use the service name: postgres://...@db:5432/. Check DATABASE_URL in your .env, it's probably still localhost from running outside docker. | by Anonymous |
Two services in docker compose, web and db. Web fails with ECONNREFUSED 127.0.0.1:5432 even though db is up and the logs say it's accepting connections. Works fine when I run the app outside docker. What am I missing? | by sam |
Down to 12GB, and the logging's capped now. Thanks. | by sam |
Or don't use docker. | by vek |
docker system prune -a removes all images not used by a running container. Leave out --volumes unless you've read what that does. People have lost databases. | by lintroller !-TjZOnKc |
daemon.json: { "log-driver": "json-file", "log-opts": { "max-size": "10m", "max-file": "3" } } Only applies to containers created after you restart the daemon, so recreate them. For now truncate -s 0 the file. Don't rm it while the containe… | by rproxy |
31GB of log for one container. wow. | by sam |
docker system df -v to see the breakdown. Usual suspects are old images from rebuilds, build cache, and container logs. The logs are in /var/lib/docker/containers//-json.log and by default they grow forever. | by rproxy |
VPS started failing writes. du says most of it is /var/lib/docker. I only have four containers! How do I find out what it is and what's safe to delete? | by sam |