Hi all.
Is it possible to update existing container from ubuntu 16.04 to 18.04 ? I tried ‘do-release-upgrade’ and it said ‘Must be connected to a terminal’.
Thanks
Hi all.
Is it possible to update existing container from ubuntu 16.04 to 18.04 ? I tried ‘do-release-upgrade’ and it said ‘Must be connected to a terminal’.
Thanks
There are three main ways to get a shell to a container. lxc exec is one of them.
Try with ssh and lxc console as well.
These three ways get you a different type of try. Run tty in each to see the difference.
Hi, I tried
lxc exec container – sudo do-release-upgrade
lxc exec container bash
sudo do-release-upgrade.
Both result the same ‘Must be connected to a terminal’.
I did an edit to my original reply. The other two ways are
lxc console (you need to set up a password to the non-root account in the container in order to log in).Thanks simos, lxc console works !
Thank you 
I do:
lxc exec container-name -- script /dev/null -c do-release-upgrade