If you want to run a service in a container for security purposes and it doesn’t need to use the gpu, you can just use any container management software to run it.
Then your “whole pc” is the private part that only you have access to and the stuff in the container is the “public” part.
If the service needs to use the gpu then it might be worthwhile to run it in a vm with gpu passthrough.
No matter what though, you need to say what you’re trying to do. Like exactly what you’re trying to do. Like what specific software packages you’re trying to run and how you want the “anonymous” and “public” sections to be different.
It almost sounds like you wanna run a stable diffusion setup with two different model sets so an authenticated user can make pictures of Donald trumps head on Christina Hendricks body but public users can only do normal generic stuff.