I create an Dockerfile.template for redis and I want to set the command:
RUN sysctl vm.overcommit_memory=1
But I can’t do this, I got an:
Build failed: The command '/bin/sh -c sysctl vm.overcommit_memory=1' returned a non-zero code: 255
How can I set the sysctl before the redis-server starts?