- Jan 2020
But the reason is that, if your host system does not have the vm.overcommit_memory=1 enabled, you will not be able to switch it inside container.
Fixed redis issue on harbor: "Can't save in background: fork: Cannot allocate memory"
Added on /root/harbor/docker-compose.yml:
command: sh -c 'echo 1 > /proc/sys/vm/overcommit_memory'
Also executed command: sh -c 'echo 1 > /proc/sys/vm/overcommit_memory' on the main server harbor (not only on the container)