Ultimately this requires a GUI on my host, so where the memory and CPU are gonna be used? By the docker or by my host?
Can this be hacked to run on EC2 or Lambda? :D
You won't be able to mount your local machine's filesystems remotely (unless you set that up separately), but the whole point of the X system is to be able to run GUI applications remotely while passing their interface back to your local machine.
Once you have an X server running (as explained in this article), if you use SSH, your SSH client should be able to handle passing back the interface automatically. (Usually referred to as X-Forwarding.)
Otherwise you'll have to tinker with firewalls and manually configuring the network connection, and it's somewhat less secure.
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.