diff --git a/docs/docker-compose-install.md b/docs/docker-compose-install.md index 0426aa3a0..1a12a2538 100644 --- a/docs/docker-compose-install.md +++ b/docs/docker-compose-install.md @@ -79,3 +79,15 @@ docker compose up -d ## Post-install See [post-install](post-install.md). + +## Troubleshooting + +```WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition.``` + +If you see a warning like this, you have to enable overcommit on your host machine (outside docker, since /proc is read-only for redis). +Solution + +``` +echo "vm.overcommit_memory = 1" | sudo tee /etc/sysctl.d/trashposs-memory-overcommit.conf should be set, to enable Memory overcommit on reboot, change will apply after reboot or see the line below how to activate it temporary without reboot +sysctl "vm.overcommit_memory=1" enables Memory overcommit on-the-fly, you can then start TrashPoss with "docker-compose up -d" +``` \ No newline at end of file