The Ressources of your docker container will be used. You can see that with the command docker top CONTAINER.
Interesting question, I haven't worked with Amazon Lambda until now but from what I've read about it, my understanding was Lambda can only take pure functions and run them.
It would be interesting if EC2 instances can run docker virtualizations in them.
docker top CONTAINER
Maybe you want to try and make a post about it? :)
You can run dockerized x server apps on ec2 but there are two ways you can get gui.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.