Can I upgrade a docker image/container from buntu 18.04 to ubuntu 20.04? I have a host ubuntu 20.04 running my software on docker with a container derivated from ubuntu 18.04. I would like to use ubuntu 20.04 for several reasons (like the better software on 20.04).
If I run do-release-upgrade on the container terminal I receive the following:
&quot;do-release-upgrade
Checking for a new Ubuntu release
You have not rebooted after updating a package which requires a reboot. Please reboot before upgrading.&quot;
Rebooting the container or rebooting the host machine does not solve the problem.
Docker doesn't recommend running an apt-get upgrade and dist-upgrade on a docker image as many of the &quot;essential&quot; packages from the partent image cannot upgrade inside an unprevileged container. take a look at the Docker best practices