I've been using container-use to do something like that: https://container-use.com/introduction