On-demand creation of a container in the parent pod of theia

Hi all,
I use theia as an editor along with eclipse che. theia would be part of a kubernetes pod during runtime.
I would like to know how I can create another container within the parent pod (same pod that contains the theia ide)…

The other container would be created or destroyed dynamically based on actions performed in the theia ide by the user.

Can anyone please provide few ideas? Thanks in advance for your advise.

Please ask in the che community.