Rpi3 ssh - select hdmi output to choosen container

Hi,

It is possible to select hdmi video output to choosen container or image trough ssh?

For example I have installed xbian-kodi and ubuntu desktop in docker. Now I wanna switch betwin them. If I wanna watch movies on my tv I switch to xbian-kodi or if I wanna to surf the net on my tv I switch to ubuntu desktop.

Is this possible? How?