Rancher service resource constrains

Is there any way for me to limit a service to use just a certain number of cores?
Docker supports it by using the –cpus parameter. I can’t find it under rancher.

My use case is that i have a service that runs on an environment that has 4 cpu cores. I want to scale the service to have two containers that are using 2 cpu cores each.

I found the cpu-pinning under Security/Host but by using that only can specify individual cores to be used by my containers.

Any ideas on that?