ssh into your Kubernetes cluster and modify the docker.service file. For an Amazon EKS cluster, the file is located at /usr/lib/systemd/system/docker.service. Append the property LimitMEMLOCK=infinity in the file and then restart docker using the following command
sudo service docker restart
This will spin up docker containers with an infinity memlock which is equivalent to
docker run -ulimit memlock=-1:-1 <docker image>