Container CPU allocation

I understand that a container can be restricted to run on allocated physical cores using the --cpuset parameter in the RUN command; my question is: can a selected number of virtual CPUs then be allocated to be available within the container. If this is possible would someone please tell me how this is done.

Thanks in advance for any help with this.

Patrick.