How does DOCKER uses the machine hardware?

Can I run an application on docker which needs 4GB RAM and 4CPU, but the machine has 2GB RAM and 2CPU.
Is it possible to run the application?
How will the machine react/perform?
That particular application will be running 24/7, as it is a network monitoring application.
if yes, then can I run multiple monitoring applications at the same time.