How to set service requirements?

Reservations affect only scheduling. Each host has a total amount of RAM/CPU available, and every container which has reservations subtract from the available amount. If there is no host with the requested amount available, scheduling fails. If a container does not specify any reservation, then nothing is subtracted.

None of this affects how much resource a container can actually use, which there are separate limit settings for.