How to add shm-size and ulimit

Hello, I am running 1.6.28, I believe this has been added, but I am not sure how to add it to my container.

thanks